Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Arrays
Message
From
25/01/2001 18:36:43
 
 
To
25/01/2001 18:32:41
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Re: Arrays
Miscellaneous
Thread ID:
00468777
Message ID:
00468870
Views:
23
>>Nope, it still gives you an "'whatevernameyouused' is not an array" error. Unless it is an array, but even then it still will return at least 1. An array has to have at least one element.
>
>It really just returns the defined size. I tested it.
>
>Dimension MyArray(10)
>myArray[1] = 'jim'
>nlen = alen(MyArray,0)
>?nlen  && this will show 10
>
>
>oh well, what in your case, would constitute an empty array? That is the problem. I think the DIMENSION command fills elements with a value of .F., which may not help much.

That's correct, there is no way to tell if an array is "empty" (unless you never have .F. values in it). But as you noted, .F. could be perfectly valid.
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Previous
Reply
Map
View

Click here to load this message in the networking platform