Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SetFocus is not working correctly
Message
 
À
13/05/1999 14:15:12
Steve Summers
Pima County Superior Court
Tucson, Arizona, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00218523
Message ID:
00218550
Vues:
22
Steve,

SetFocus is working fine. Check the sequence of events in your code;

If nKeyCode = 13 && Enter key
* Hit enter key
thisform.lstinfo.additem(this.value)
* Item added to list
this.value = ""
* value blanked out
this.setfocus()
* Focus set to this control
endif
* Keypress ends and VFP processes the Enter key
* Default for enter key is to move focus to the next control

As Bruce told you you need to stop the default processing of the enter key.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform