Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Determining if Variable is an Array
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00123051
Message ID:
00123055
Views:
14
Hi Nigel,

You can use TYPE('aArrayName[1]') == 'U' to figure out if an array does not exist. Though in your case the problem would be different because you cannot pass an array as a parameter to an object's method unless the array exists as a property of the object.

>I am trying to create a method in a class which can received as a parameter either two variables or a single array. I can't find any way of identifying if a variable is of type 'Array'. The TYPE() function only returns the type of the contents. Does anybody know how I can do this?? TIA,
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform