Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Arrays
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Re: Arrays
Miscellaneous
Thread ID:
00468777
Message ID:
00468797
Views:
23
>Hello Russell!!
>
>I not entirely sure but you could check the value of the array and see if it was false. An empty array is always false at first.
>In other words:
>IF laArray = .f.
> ** my array is empty
>else
> ** it is not empty
>endif
>However, this only works after it has initialized :-). I will check for a better way.

Wouldn't work.

laArray[2] = "something"

laArray[1] could still be .f., but the array is not "empty".

BTW, a value of .f., 0, "", or {}, could also be considered empty, depending on the type of data involved.
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform