Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Determine Array parameter is 1 or 2 Dimension?
Message
 
 
To
11/03/1998 21:03:38
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00084064
Message ID:
00084070
Views:
21
Justok, I think you can ask for: ALEN(MyArray,2), which returns the number of columns in the array. If the array is a one-dimensional array, ALEN( ) returns 0 (no columns).

I think you can also do:
If type("MyArray[1,1]") <> "U"
  * 2-D array
Else
  * 1-D array
Endif
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform