Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Does Memory Variable Exist?
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00832958
Message ID:
00833118
Views:
25
Hi Anatoliy,

VARTYPE() is fine for a single variable but throws an error when testing for a non-existent array element, whilst TYPE() tests ok. eg:
? TYPE( "NoArray[1]" )   &&  returns "U" - no problem

? VARTYPE( NoArray[1] )  &&  causes an error message 
Otherwise I also prefer VARTYPE().




>I just opened VFP6 session and type in Command window
>? VARTYPE(aa)
>no error returned.
>
>As I can see an error can happen if the second parameter is used with VARTYPE like
>? VARTYPE(m.bb, .T.)
>
In the End, we will remember not the words of our enemies, but the silence of our friends - Martin Luther King, Jr.
Previous
Reply
Map
View

Click here to load this message in the networking platform