Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Event Sequencing
Message
From
24/01/2001 15:17:53
 
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Miscellaneous
Thread ID:
00468044
Message ID:
00468176
Views:
23
>>No joke. We do use it for one thing. We have a TreeView and a ImageList in a container. Our baseclass TreeView has some code it's init to set the .ImageList property to the ImageList object, so the ImageList object has to instanciate first.
>
>In that case, I would add them both to a container and add code to the container's Init to do this. If they both have to exist for either one to exist, this makes sense to me. Otherwise, add code in the form's Init to handle this. I just hate to rely on a user-defined instantiation order. Relying on the instantiation order set internally to VFP is not a problem for me.
>
>Just my $0.02.

Actually, it's old code that's been around for along time. When we added the 2 controls to the container, we probably should have moved the code out of the TV.Init and put it in the container Init. But since it ain't broke...
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform