Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Getexpr to varName - how can we find button pressed?
Message
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00588551
Message ID:
00588559
Views:
25
This message has been marked as the solution to the initial question of the thread.
>Hi everybody,
>
>If we use GetExpr to VarName in a code, how can we distinguish between Cancel pressed and clearing expression and hitting Ok? VFP knows this internally (for instance, Index dialog for condition), but how can we catch this in a code?
>
Hi Nadya,

If you clear expession and hit Ok than empty string will be returned into VarName. If you press Cancel than a default expression created with the DEFAULT clause will be returned, if you provide one.
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform