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:
00413717
Views:
14
>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, did you try an answer?

TYPE('myarray(1)') will return "U" if myarray is NOT an array, but a variable. That's how you know it is not an array.
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro

"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform