Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Manually REPLACEing in a VCX Methods field
Message
From
08/11/2005 05:39:52
 
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Environment versions
Visual FoxPro:
VFP 6 SP5
Miscellaneous
Thread ID:
01065807
Message ID:
01066347
Views:
14
>you are at serious risk of completely corrupting the classlib if you Save from the class designer.

Although I'd still say the position/length or startpos/endpos or the like is coded in the objcode, you are of course right, that one would mess the vcx when editing such a method, eg the class designer would perhaps add the PROCEDURE Init and ENDPORC lines before and after the messed init method code, if you add a line there, messing it up even more.

We are merly trying to show why things mess up. I'd not suggest to simply update the needed objcode informations to fix the messed code, a COMPILE is much simpler and will also really reflect the code changes made, true.

There would be no real benefit in manipulating objcode informations, as that would be overwritten the next time you'd compile the vcx anyway.

And to answer Bhavbhuti once again: Executing / instanciating a class does not trigger a recompile. If the objcode holds valid object code, that is run. As Greg pointed out to delete the methods memo content after COMPILE CLASSLIB leaves the classes within intact and usable (but note compilable!). You can also run a FXP without the PRG with DO prog.fxp or even just DO prog, after prog.prg is deleted.

Bye, Olaf.
Previous
Reply
Map
View

Click here to load this message in the networking platform