>I couldn't find a function, so I ended up parsing the method description out of the Reserved3 field in the VCX.
>
Hi Joel:
There is really no need to dig into the VCX/SCX fields. You can convert your classes to text with FoxBin2Prg, then copy/past your method with it's definition header and regenerate your VCX/SCX from that. You can even make many search and replace into the generated text files for renaming purposes, changing code or whatever you need.
So, this are the steps you can do:
1) Convert your VCX/SCX to PRG-Style text files (VC2/SC2) using right-click -> sendto FoxBin2Prg (or using the fb2p_diff.exe utility provided)
2) Using your favorite editor (Notepad++, Beyond Compare, etc) or using the provided copy of WinMerge, copy/past your method(s) and their header definition(s) to the destination file and save
3) Regenerate both binaries from the VC2/SC2 files
This is much more simple and secure than digging into the VCX/SCX data, which can be corrupted if touching something wrongly.
I've attached some pictures of the process and the final result.
You can find FoxBin2Prg on VFPx (
http://vfpx.codeplex.com/wikipage?title=FoxBin2Prg) and on Thor too.
Best Regards.-
Fernando D. Bozzo
Madrid / Spain