Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Design question
Message
From
01/07/2005 12:58:57
 
General information
Forum:
Visual FoxPro
Category:
The Mere Mortals Framework
Title:
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01028214
Message ID:
01028251
Views:
19
Would the Container's ControlCount property work for you?




>Hi everybody,
>
>I'm designing a generic container class, which I'd like to use on each page of the pageframe (or instead of pageframe).
>
>I'd like to have a reference of all container's biz obj. What would be the right way of doing it?
>
>1) Have an array property to keep object references of all biz objects. Let each container's instance add a code in its Init to add these objects to this array property. [Or it could be a separate method of the container called RegisterBizObjs, which is called from container's Init)]
>
>In the container destroy do store .null. to this.aBizObjs to manually go garbage collection.
>
>
>2) Use a collection class. But it then would be a first object in the container. How would I implement it?
>
>I'm leaning towards the first idea. What do you think? Does it sound like a right approach?
>
>Thanks.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform