Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Xbase Fox > Cut and Paste p...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 2 Topic 809 of 859
Post > Topic >>

Cut and Paste programming problem

by dougrhoughton@[EMAIL PROTECTED] Sep 20, 2007 at 01:20 PM

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
 




 2 Posts in Topic:
Cut and Paste programming problem
dougrhoughton@[EMAIL PROT  2007-09-20 13:20:38 
Re: Cut and Paste programming problem
Gene Wirchenko <genew@  2007-09-20 19:30:06 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri Aug 29 2:23:11 CDT 2008.