Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
RemoveObject in Init
Message
De
28/02/2001 08:16:58
 
 
À
28/02/2001 08:13:47
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00480229
Message ID:
00480481
Vues:
9
Glenn:

>>>>>
I cannot explain why in the VFP model why during instanciation you cannot remove an object but I can offer a work around.

According to Drew Speedie, to properly instanciate forms in VFP follow LISAG (Load,Instanciate,Show,Activate,Gotfocus). If in the Activate event you test for the presence of this object and if it exists removeit eg.

Form::Activate
if type('this.badobject') = 'O'
this.removeobject('BadObject')
endif

you will successfully accomplish your objective.
>>>>>

Thank you. I will experiment with the idea.

Daniel
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform