Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Trying to retroactively subclass my forms
Message
 
 
To
20/03/2001 17:36:36
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00487044
Message ID:
00487081
Views:
13
Eric,

This is not what you're looking for, but perhaps it give you some ideas: Classes - VCX Re: Adding Property with Property_Assign to all classes Thread #411336 Message #411358

>I am working with an application that contains about 90 forms. They're all just regular "form" class, not subclassed. Now I'm trying to retroactively subclass the existing forms, and I've *almost* got it working...there's just one problem I keep having.
>
>I need to add a "DoDefault()" line into the Load() method of each form, so the code in the subclass will actually get run. I can programatically insert the line into the Load() section of the methods memo field in the .scx table. When I modify the form, I can see the line that I inserted at the top. However, a corresponding amount of code is truncated from the end of the Load() method. Looking in the methods memo field again, I noticed that it's all there, and that Init() is the next method in the memo field. So I go back into the form designer, check out the Init(), and sure enough, there's the rest of my Load() code, up there at the top of the Init() section.
>
>This strongly suggests to me that rather than interpreting the memo field and looking for PROCEDURE/ENDPROC pairs to determine where each method begins and ends, FoxPro is storing the begin and end positions for each method in some other location. I haven't been able to determine where though.
>
>TIA for any advice.
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform