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:
00588697
Views:
22
>>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.

You're right! I haven't thought, it's so simple. Well, it means my colleague was wrong and there is an easy way to distinguish...
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform