Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Manually REPLACEing in a VCX Methods field
Message
From
07/11/2005 13:26:14
 
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Environment versions
Visual FoxPro:
VFP 6 SP5
Miscellaneous
Thread ID:
01065807
Message ID:
01066110
Views:
20
This message has been marked as a message which has helped to the initial question of the thread.
Hi Bhavbhuti,

the class designer/editor seems not to parse the methods memo to tell which lines it should display, when you edit a method. The objcode memo seems to contain the offset and length of the text in the methods memo to show for a certain method.

If I create a form class in a new empty vcx and add the line
* The Load event
in the load event and the line
* The Init event
in the init event, then open that vcx as table and modify the methods memo to contain
Procedure Load()
* The Load event
* is now longer
EndProc
Procedure Init()
* The Init event
EndProc
then reopen the form within the class designer/editor I see the line
Procedure Init
within the init method, while the load method seems to not have changed.

Because compiling updates the info within objcode, the false display of methods is healed. And because the compile is based on the methods memo source text alone, if you didn't touched it within the project manager this could even repair what you thought has been an unrecoverably corrupted vcx.

Bye, Olaf.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform