Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
On key label escape
Message
From
27/12/1999 23:25:00
 
 
To
27/12/1999 23:09:49
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00309049
Message ID:
00309053
Views:
27
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform