Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How tell if its an Array?
Message
 
 
To
06/07/2002 04:52:52
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00675762
Message ID:
00675827
Views:
14
>>I need to tell wether a variable is an array or not. If I do :
>>
>
>Sounds like there is no precise and easy way of knowing if something is an array or not.
>You could try to 'produce' an error :
>
>local llIsNotArray
>on error llIsNotArray = .t.
>alen(laArray)
>on error
>
>if llIsNotArray
>...

What about this one-liner?
IF TYPE("ALEN(laArray)") = "N"  && It's array
TYPE() function does all error handling for you.
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform