Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Is Array ?
Message
From
02/11/1999 11:55:38
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00285490
Message ID:
00285514
Views:
25
>Hi Kenneth
>
>Thank's
>Do you think that performance will be affected by this king of trapping...
>
>
>
>>Rock,
>>
>>You can try ALEN(MyArray), which will kick out an error if the variable is not an array. Trap the error and there you go.
>>
>>>Hi
>>>
>>>I want to know if a specific variable is an array ?
>>>I try VARTYPE() or TYPE() but it gives me only the type of the first element of the array. I used VFP6.0 with SP3
>>>
>>>Thank's in advance

Try:
TYPE('myarray[1]')<>'U'
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform