Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Use of Function Key
Message
De
25/06/2003 16:13:19
 
 
À
25/06/2003 16:04:16
Dennis Hupe
Boot, Hoof'n Paw Prints
Bloomville, New York, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00803982
Message ID:
00803989
Vues:
7
I need help on some basic programming. I want to set up a function key to execute the code residing in my click event of the exit button. In my form's init method I coded "ON KEY LABEL F10 THISFORM.CMDEXIT.CLICK()". When I press the F10 button I get the error message saying THISFORM can only be used within a method. I tried putting the code in a program and change the code to "ON KEY LABEL F10 DO quit" and getting the same result. Would appreciate some guidance on how to accomplish this. Thanks in advance for any help.

Dennis,

I would suggest you keep the command button part in, but also replace the THISFORM part with the actual name of the form. That should do it.
``` Appreciate a normal day, it is always better than a bad one ```

Kev
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform