Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Keypress {Enter} in textbox
Message
 
To
05/09/2003 14:30:19
Scott Sherman
Puyallup Tribal Health Authority
Tacoma, Washington, United States
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00826575
Message ID:
00826577
Views:
24
Add dodefault() at the end. Otherwise the default behavior seems replaced with your code.

>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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform