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:
00468835
Views:
23
>>No, "?laArray" would still return .F. if there has never been a value put in it.
>>It is still "empty", however the array is not.
>
>I get what you are saying.
>If I said
>MylogicalValue = laArray
>?MyLogicalValue && would return .f.
>
>That makes sense now I guess that is why you are the MVP :-)
>
>Thanks for the info I know it will come in handy sooner or later.
>Probably sooner :-)

You can reference an array without any subscripts. The information shown is the whatever is in the first element of the array.

A little trick you can use to initialize an entire array:

laArray = 0 (or =.T., or whatever type of value you need)

Now, no matter what the dimensions of the array, all of the elements have been set to 0.
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Previous
Reply
Map
View

Click here to load this message in the networking platform