Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Vartype: behavior
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00136852
Message ID:
00137721
Views:
43
>This is unfortunate, but expected since VARTYPE treats the expression, well as an expression that may fail. While non-existing single (non . vars) will generate "U" results, VARTYPE() will cause an error.
>
>IOW, you can use VARTYPE() in this situation only if you know at
>the very least that all objects actually exist and will return
>some sort of type or NULL.

Thanks for the explanations, gentlemen. We'll just have to be a little careful when using VARTYPE() when object existence is questionable, is the bottom line then (but you should really be checking for existence anyway then, of course). Otherwise it's a fine new addition to the vfp repertoire. There has been some confusion, as I mentioned earlier in thread, since a FP Advisor 6/98 article noted that VARTYPE() would return an error if ANY variable didn't exist...
The Anonymous Bureaucrat,
and frankly, quite content not to be
a member of either major US political party.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform