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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Cut and Paste Problem..

Status
Not open for further replies.

Siddiq

MIS
Sep 23, 2000
46
PK
Hi friends...

I have general text filed in my form ..with null value

if I cut or copy any thing in my word document I want that
value in my text field automatically.

Plz help me if anyone can..

Thanks and best regards

Siddiq
[sig][/sig]
 
Siddiq

If I understand you correctly want to paste from the clipboard into a control on a form? (You have copied to the clipboard from Word)

Add a new property to the form called pasted

In the .Activate event of the form put:-

WITH THISFORM
[tab]IF !.pasted
[tab][tab].ControlName.Value = _CLIPTEXT
[tab][tab].pasted = .T.
[tab]ENDIF
ENDWITH

In the .Deactivate event put:-

THISFORM.pasted = .F.

Chris

[sig][/sig]
 
Dear Chris

Thanks allot for your help..
it's working perfectly..
once again thanks

best regards

Siddiq [sig][/sig]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top