Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How can I copy text?
Message
From
16/02/2000 14:58:00
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
How can I copy text?
Miscellaneous
Thread ID:
00333056
Message ID:
00333056
Views:
40
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
Map
View

Click here to load this message in the networking platform