Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Moving names in an array
Message
General information
Forum:
Visual FoxPro
Category:
FoxPro 2.x
Miscellaneous
Thread ID:
00654879
Message ID:
00655136
Views:
24
Mike,
for i = 1 to alen( laNames )
   if ( empty( laNames[i] ) )
      adel( laNames, i )
   endif
endif
If the array is a lot larger you can add some early out logic.

>I am trying to write a program using an array that will but the names in my fields in topdown order.
>
>example
>name1 = john
>name2 =
>name3 =
>name4 = jane
>name5 = joe
>
>I want to move the names so the come out like this.
>name1 = john
>name2 = jane
>name3 = joe
>name4 =
>name5 =
>
>How would I do this in an array? Can anyone help..
>
>
>Thanks in advance...
>
>name5 =
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform