Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Arrays
Message
From
25/01/2001 18:25:16
 
 
To
25/01/2001 18:14:34
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Re: Arrays
Miscellaneous
Thread ID:
00468777
Message ID:
00468865
Views:
22
>>>>
>>>>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.
>>>
>>>
>>>if ALEN(Myarray,0)= 0
>>>* this array has no elements in it
>>>endif
>>>
>>>
>>>Jim
>>
>>I don't think that's possible. If it has no length, it's not an array.
>
>The little 0 thats the last parameter means it returns the current number of elements and not just the defined size. I thought it might do what you want

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.
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform