Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Use FormSet Base Class just because I need Load Event
Message
From
21/03/2000 16:59:28
Charlie Schreiner
Myers and Stauffer Consulting
Topeka, Kansas, United States
 
 
To
21/03/2000 13:44:30
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00348510
Message ID:
00348607
Views:
26
We do too in our framework. We added a Line to cntBase. The line's Init() calls This.Parent.Load(), a custom method in cntBase. In the container's Init() we do a This.RemoveObject('line'). This seems to work well in giving you an event prior to any other objects' inits.

>I have a framework class where I had been using a Container base class. I just encountered a situation where I want a some code in the container to run before the INIT of one of the members I add in the constructor of a derived object. This seems just like the use of Load in a form.
>
>Problem is Container does not support Load. I noticed that FormSet does, and I'm sure that is much lighter weight than Form. Does it seem like reasonable practice to use FormSet for this, even though what I am doing has nothing to do with FormSet's (or Forms, for that matter)?
>
>TIA,
>
>-- Randy
Charlie
Previous
Reply
Map
View

Click here to load this message in the networking platform