Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How determine if variable is an array
Message
From
21/07/2000 12:00:38
 
 
To
21/07/2000 11:43:37
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00395400
Message ID:
00395491
Views:
13
I'm glad you asked, it prompted me to add ISARRAY to my own code libary like this:
FUNCTION ISARRAY( tcVar)
RETURN TYPE("tcVar[1]") <> "U"
For ISARRAY() to work you need to pass the variable by reference. For example:
myVar = 3   && a variable
dimension myArray[1]    && an array
myArray[1] = 3
?ISARRAY( @myVar)   && returns .F.
?ISARRAY( @myArray) && returns .T.
Rick Borup, MCSD

recursion (rE-kur'-shun) n.
  see recursion.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform