Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Pasting Information to an Edit Box
Message
 
 
To
06/10/2001 23:06:05
Chuck Berry
Copper State Bolt & Nut Co.
Phoenix, Arizona, United States
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00565238
Message ID:
00565289
Views:
17
The best way would be to use KeyPress event of the edit box
LPARAMETERS nKeyCode, nShiftAltCtrl
* Check if F12 was pressed
IF nKeyCode = 134
    This.Value = This.Value + "MyName "  + Ttoc(Datetime())
    * Don't let VFP editbox to process F12
    *  You don't really need this because pressing f12 has no effect on editbox 
    NODEFAULT
ENDIF
>Hi All,
>
>What solutions are there to paste text into an edit box? I need to insert a username and date/time when the user presses say the F12 key. I know foxtools has a paste function, but don't know if it's the best (or current) way.
--sb--
Previous
Reply
Map
View

Click here to load this message in the networking platform