Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VFP5: On Key Label
Message
De
01/05/1997 16:13:59
 
 
À
01/05/1997 16:10:10
Jim Si
Alberta Research Council
Calgary, Alberta, Canada
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00030535
Message ID:
00030536
Vues:
35
>Hi All,
>
>I tried to use On Key Label command to reset the control focus. Here is the command I used in the Init Method:
>
>ON KEY LABEL frmMyForm.txtField.setfocus()
>
>I got an error saying "frmMyForm is not an object". Did I miss anything?

If you are already in frmMyForm you should use reference 'Thisform'.
Thisform.txtField.setfocus()
BTW, it's better to use KeyPress event than ON KEY LABEL.
Edward Pikman
Independent Consultant
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform