Thanks, I will try that!
Bill
>Hi!
>
>For this purpose I use Keypress event of form. I place there the following
>code:
> if lastkey() = 27
> this.release
> endif
>
>Work fine (for me).
>
>Have a happy day,
>Vladimir Shevchenko
>
>> Thisform.cmdCancel.Caption = "
to Cancel"
>> Thisform.cmdCancel.Default = .T.
>> Guess what. . .It doesn't. What did I do wrong.
CySolutions, Medical Information Technology
You're only as good as your last
success, so . . .If it works. . .don't fix it!