>Hi Gary,
>
>FoxTools.FLL has a number of editor functions you can use. My ISX.PRG (
http://www.foxpert.com/download/isx.prg) uses them to parse the content of the current code window. You can use this program to see how that's done.
I agree with Christof... if you want to do this so it's professional and not error prone i would use the FoxTools.fll or write an FLL (messing with the editor window content/cursor in VC++ using the FoxPro API is pretty powerful and straightforward). The only drawback is that since this is at design-time you'd have to be wary of CLEARs/SET LIBRARY TO that would clear out your CLASSLIB list in VFP.