Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Pressing Esc key to finish dataentry
Message
 
 
À
30/07/1997 14:30:57
Edward Crawford
City Facilities Management
Glasgow, Royaume Uni
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00042403
Message ID:
00042516
Vues:
31
>>I want to setup a dataentry form to prompt for "Save now?" when user presses the Esc key rather than clicking on the Save button on the toolbar I also have. I know it is not the "Windows" way but users are asking for this feature because it was the way it was done in DOS app. I tried to use ON KEY LABEL ESC command to call the click method of the toolbar w/o success (I guess it can't be done!?). Any suggestions?
>>
>>John.
>
>
>Hi John,
>
>Yes it can be done, I just tested for you.
>
>Go into your form's Keypress Event Method write the following code:
>
>IF nKeyCode = 27
>
>ENDIF
>
>That's it, hope it works for you.
>
> Ed
Thanks Ed! Your approach worked perfectly! By the way, when I stated that form level method cannot be called I was referring to something like: ON KEY LABEL ESC thisform.asktosave(). Anyway, thanks again!

John.
It's "my" world. You're just living in it.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform