>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?