Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Pageframe Resize or Page Switch Resets ADDOBJECT() Contr
Message
 
 
To
11/12/2007 11:54:32
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
01274717
Message ID:
01274805
Views:
12
>And if it has changed back to something you had two minutes ago, you'll still have to kill the current object and create the old one from scratch, and caching is your friend...
>
>Even more efficient would be to have a collection of such objects and keep only the relevant one visible. So instantiate on demand, add to collection. Next request, hide current object, check the collection, if found show it, if not add it.
>
>On destroy, just .remove(-1) on the collection, then remove the collection.

The only problem with this approach is that you would need to use dynamic names for your container added to the page. If you would need to reference it outside this procedure, you may need to save the name of the currently active container in some property.
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform