>>In many application, pressing Esc is quitting the form.
>>
>>What's the best way to handle that in Visual FoxPro?
>I make the Exit or Cancel button have the Cancel property set to .T. If there is no cancel button then I set Form.KeyPreview to .T. and catch the nKeyCode = 27 in the Form.KeyPress event
Thanks for this response and the other about PADR.