Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Copy Method Utility?
Message
From
02/02/2017 03:15:39
 
 
To
30/01/2017 16:03:39
Joel Leach
Memorial Business Systems, Inc.
Tennessee, United States
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
Miscellaneous
Thread ID:
01647168
Message ID:
01647311
Views:
47
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform