Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to mark TEXT in textfield by Commandbutton 1

Status
Not open for further replies.

TedMcCoin

Programmer
Feb 19, 2003
14
0
0
DE
Hi,

I am looking for a piece of code to mark a complete texfield like CTRL-V and then Copy into clipboard like CTRL-C by means of a commandbutton.

I am using VFP 6.0

Its a simple idea, but I have no clue how to establish that, any ideas are appreciated.

thanks, Erik
 
Are you looking for something like this? These would go in COPY, and Paste buttons.

* copy to clipboard
_cliptext = THISFORM.text1.Value

* updates the 2nd Value with clipboard contents
THISFORM.text2.Value = _CLIPTEXT

Jim Osieczonek
Delta Business Group, LLC
 
Jim thank you for your fast reply,

that works fine, just I wanted also the field visible marked as you see it with CTRL-A.

Any ideas ?

Thanks, Erik
 
Maybe this?


thisform.text1.SelectOnEntry = .T.
thisform.text1.SetFocus
_cliptext = THISFORM.text1.Value

Jim Osieczonek
Delta Business Group, LLC
 
Jim,

that was exactly I was looking for !!!!

Great, thank you !!!!

Erik
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top