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