>>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