Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Pageframe Resize or Page Switch Resets ADDOBJECT() Contr
Message
 
 
À
11/12/2007 06:33:08
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
01274717
Message ID:
01274726
Vues:
10
>> I'm not sure why do you remove the object? We use similar methodology, in page Activate method we add a container if it's not there using NEWOBJECT method. But once added, this container remains added.
>
>Hi Naomi,
>
>The container class that I am adding changes, depending on a value that can be set when initializing a form OR selected from a combobox on screen. I remove the object before adding it again to clear the original object. I could add code to only remove and add the container if the class HAS changed - it would probably be more efficient that way.

I see. Are you sure the class is indeed removed? Sometimes there are extra tricks needed like setting the object visible to false before removing and setting it to NULL afterwards.

You definitely shold remove only if parameters changed.
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform