Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Error using ON KEY LABEL in a From
Message
 
À
13/03/2008 14:45:57
Jay Johengen
Altamahaw-Ossipee, Caroline du Nord, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
01301881
Message ID:
01301888
Vues:
8
>I have this in MyForm.LOAD, but it gives an error regarding that it cannot be used outside a form.
>
>
>ON KEY LABEL ESC THISFORM.CloseFormESC()
>
Sure, just because thisform didn't exists when that form has no focus.
Just Set Form KeyPreview=.t. and in KeyPress event of that form put:
LPARAMETERS nKeyCode, nShift
DO CASE
   CASE nKeyCode = K_27
        thisform.CloseFormESC()
ENDCASE
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform