Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Checking to see if a variable is an array.
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00413697
Message ID:
00413726
Views:
8
>Not to be a Pig here but did you read the question? The TYPE and VARTYPE of an array return the TYPE or VARTYPE of the first element. I don't know wether the varriable is actually an array or not.

Bill,

Read and try the answer,

TYPE("MyArray(1)") will return a "U" if MyArray is not and array and some other data type if it is an array. Yes the type returned will be the data type type of the first element but if the return is "U" then you know that MyArray is NOT an array.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform