Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Use FormSet Base Class just because I need Load Event
Message
 
To
21/03/2000 13:44:30
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00348510
Message ID:
00348596
Views:
19
>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

You are able to add by code a object to a container using NOINIT

[ADD OBJECT [PROTECTED] ObjectName AS ClassName2 [NOINIT]
[WITH cPropertylist]]...

Marcel
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform