I am trying to paste the highlight text from one textbox (txt1) to
another txt2 by clicking the rightclick when text is highlighted with
the following code
txt1.rightclick code
KEYBOARD '{CTRL+C}'
THISFORM.Txt2.SetFocus
KEYBOARD '{end}'
KEYBOARD '{SPACEBAR}'
KEYBOARD '{CTRL+V}'
This places my cursor at the end of Txt2 but not the wanted text.
When I look in the clipboard I find than it is empty.
If I apply the follow code which is leaving out the line -
THISFORM.Txt2.SetFocus
txt1.rightclick code
KEYBOARD '{CTRL+C}'
txt2.rightclick code
THISFORM.Txt2.SetFocus
KEYBOARD '{end}'
KEYBOARD '{SPACEBAR}'
KEYBOARD '{CTRL+V}'
If rightclick the highlight text and then rightclick in txt2 box the
text now appears at the end of the txt2 box and the text is still in
the clipboard
It seem that when I put the line - THISFORM.Txt2.SetFocus - after
the Keyboard coding Foxpro does not give it time to execute the Ctrl-C
command and leaves the clipboard empty.
Is there any way around this problem?
Doug H