Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Macro substitution
Message
De
24/10/2004 13:51:45
 
 
À
24/10/2004 13:34:16
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Versions des environnements
Visual FoxPro:
VFP 8 SP1
Divers
Thread ID:
00954084
Message ID:
00954100
Vues:
19
You have at least two options:
ON KEY LABEL ESC thisform.release
Or, a much better solution is to put this in the KeyPress event method
if nKeyCode = 27 
   thisform.release
endif
Personally I give my customers a last chance to regret, with a timeout. This also goes into the KeyPress event method
DO CASE
   CASE nKeyCode = 27	&&Escape
      IF MESSAGEBOX('Do you really want to exit the program?',4+16+256,'Obs!',5000)=6
	 thisform.Release()
      ENDIF
   CASE morestuff..
ENDCASE
>ok, thanks I will try and let you know
>by the way...i have a problem with on escape too...i want to release a form when I press ESC.have any ideea
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform