Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Disabling ESC Key in a Form???
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00000777
Message ID:
00000789
Vues:
43
>
>Make sure you 'KeyPreview' in the Form is set to
>TRUE
>and trap the key in the Form KeyPress() event.
>

I am doing that. what do I do next:

KeyPress() event:
If nKey=27
* Help here - Where do I branch to in order to
* stop the unload event from firing. Do I need to
* recall the activate of the form again. I already
* tried a few options in here without success.
* As mentioned already in this thread, I tried NODEFAULT
* and that had no effect. I'm sure someone has killed the
* ESC key throughout an entire application before.
Endif

It appears to be a very easy fix, but it is eluding me today.
Bad computer karma I guess... Not to mention I am starting to
show initial signs of VFP coding burnout for today. These
signs include: Desire to program in Clipper 87, Inability to
spell VFP command words correctly, Accidently delete development
directory, feel free to add to the list. I'm sure everyone
has been there. Again, thanks for any help or ideas...
Steve Medvid
Systems Analyst

Environmental Resource Management
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform