Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Pasting Information to an Edit Box
Message
De
07/10/2001 00:41:07
Dragan Nedeljkovich
Now officially retired
Zrenjanin, Serbia
 
 
À
06/10/2001 23:06:05
Chuck Berry
Copper State Bolt & Nut Co.
Phoenix, Arizona, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00565238
Message ID:
00565243
Vues:
22
>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.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform