Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Pasting Information to an Edit Box
Message
From
07/10/2001 00:41:07
Dragan Nedeljkovich
Now officially retired
Zrenjanin, Serbia
 
 
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:
00565243
Views:
21
>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.

Several ways, the simplest would be, in the .KeyPress of the editbox
this.value="whatever you want "+transform(datetime())

or, if you wnat to add it below existing text:
this.value=this.value+chr(13)+"whatever you want "+transform(datetime())

In case you are sure you have the usenrame in the clipboard, you can use the _cliptext system variable which always has a copy of the clipboard.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Reply
Map
View

Click here to load this message in the networking platform