Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00813681
Message ID:
00813701
Views:
10
>
>? 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