Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Is Vartype() supposed to do this?
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00813681
Message ID:
00813701
Views:
6
>
>? message()                            &prints <whatever>
>? vartype( myNonExistantVar )          &prints 'U'
>? message()                            &prints 'Property MYNONEXISTANTVAR is not found'
>
>
>TIA

This behavior has been around for a while. Both TYPE and VARTYPE will reset any error information in VFP. If you intend to use TYPE or VARTYPE, you should store any error into other variables first.
Previous
Reply
Map
View

Click here to load this message in the networking platform