Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Question about keypress mothod??
Message
De
02/05/1998 23:59:14
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00096481
Message ID:
00096571
Vues:
14
>Hi! > >I'd like to ask you about keypress mothod. >For instance, >There are two textbox controls on a form. >if I write a code on the keypress method of the first textbox >as the followings, > >LPARAMETERS nKeyCode, nShiftAltCtrl > >if nKeyCode=13 > >This.value=0 >This.SetFocus > >Endif > >I was trying to remain the Focus on the first textbox by "this.setfocus" >after I press enter key. >But This code will led the focus on the next textbox control. >I'm not sure I suppose it's caused by the "enter" >How do I remain the focus on the first textbox even if I press >the ENTER KEY ? > > You were real close: >LPARAMETERS nKeyCode, nShiftAltCtrl > >if nKeyCode=13 > >This.value=0 >This.SetFocus NODEFAULT <---- ADD THAT >Endif
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform