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

Maybe ReadMethod code would work for you, if you're trying to document a class?
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform