General information
Category:
Coding, syntax & commands
Title:
How can I copy text?
Hello,
I'm working on a tool that will help me document my VFP code as I create it. I want to strictly format code at the end of a method that I can later create documentation from via automation. I've already done the second part. My problem is grabbing the text.
I need to figure out how to copy the text in the current window. Essentially I want to emulate CTRL+A then CTRL+C and I need to do this reliably. I have tried using combinations KEYBOARD '{CTRL+A}', KEYBOARD '{CTRL+C}', SYS(1500,"_MED_SLCTA ","_MEDIT"), and SYS(1500,"_MED_COPY","_MEDIT") in a procedure that gets called via "ON KEY LABEL F8 DO myPrg", but I can't get any combination to work properly.
I can manually do the Select All, the Copy, then press my function key which pops up the form, I fill it out, press a button, then I do a paste. My goal is to automate this process.
Any suggestions would be greatly appreciated.
Thanks,
-Isaac
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only