Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Keypress {Enter} in textbox
Message
 
 
À
05/09/2003 14:30:19
Scott Sherman
Puyallup Tribal Health Authority
Tacoma, Washington, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00826575
Message ID:
00826576
Vues:
30
Try
LPARAMETERS nKeyCode, nShiftAltCtrl
IF nKeyCode = 13 and nShiftAltCtrl = 0
  THIS.Parent.CmdGo.Setfocus()
  Keyboard "{ENTER}"
  NODEFAULT
ENDIF
>I have a textbox with controlsource of m.Bank_Property_ID and I need the Click of THIS.Parent.CmdGo to run when the operator hits the Enter key after typing in the textbox. The below code in KEYPRESS does what I need except the m.Bank_Property_ID is not changing to previous keys typed before the Click code is ran. I hope this make sense. It is the simple things that drive me bananas.
>
>LPARAMETERS nKeyCode, nShiftAltCtrl
>
>IF nKeyCode = 13 and nShiftAltCtrl = 0
> THIS.Parent.CmdGo.Click
>ENDIF
>
>Please and thank you.
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform