Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Pageframe Resize or Page Switch Resets ADDOBJECT() Contr
Message
De
11/12/2007 12:00:41
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
01274717
Message ID:
01274806
Vues:
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.

Perfect case for an _access method in its parent, isn't it?

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform