I have this code working on a single TextArea in the same App, but on a different window.
I have a ControlSet of TextAreas and if I have text in the clipboard e.g. XOJO , assign it for safety, and then copy from the TextArea, I would still get XOJO.
Yes, I have verified the controls text (CREdit(TXClumn).SelectedText) is what it should be (not XOJO).
What else can I do?
[code]Var clip as New Clipboard
Var txt0 As String
txt0 = clip.text
CREdit(TXClumn).Copy//Fails here
New Clipboard takes a snapshot of the clipboard. To see the changes to the clipboard, you need a new Clipboard object after the changes were made. Eg.,
CREdit(TXClumn).Copy //clip is now out of date
clip = New Clipboard // grab a fresh snapshot of the clipboard data
Var txt1 As String = clip.text