>If I am on pageframex of a form, I want to press Escape and go back to page 1.
>
>I would like to say:
> ON KEY LABEL escape thisform.pageframe1.activepage=1
>
> If I *could* do this in vfp, where would I put my command?
>
>thanks, r
Don't use an OKL, use a button whose Cancel property is set to .T.. It's click method will run when the user presses cancel on that form.
FWIW, this behavior defies windows standards that say a cancel or close button should be tied to the escape key.
Erik Moore
Clientelligence