to add to sir mike's post, _CLIPTEXT stores only the most recent character expression (strings if you may call it) that have been selected with Ctrl+C or Copy.
hope this helps. peace!
kilroy
philippines
"If the automobile had followed the same development cycle as the computer, a Rolls-Royce would today cost $100, get one million miles to the gallon, and explode once a year, killing everyone inside."
This may not apply to what you're doing, but you do need to be careful when using _CLIPTEXT in an application. _CLIPTEXT is not just confined to VFP but the whole of windows, which can cause problems -
[ol]Say the user sets a routine going in your application and then goes to do a letter in Word. If they should copy some text between the time that your routine copies text and then uses it, _CLIPTEXT will get changed.[/ol]
I had a report that took a minute or so to run and kept getting unexpected results. These were because the user was copying text while the report was running.
I got around this by immediately copying _CLIPTEXT to a variable.
Hope that helps,
Stewart
PS If you want to get the best response to a question, please check out FAQ184-2483 first.
Stewart is absolutely correct. We store values into a form var (thisform.mytext=_cliptext) and only issue _cliptext=thisform.mytext immediately before issuing KEYBOARD '{CTRL+V}' when pasting
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.