Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Add/removing objects
Message
De
17/04/2003 08:50:36
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Programmation Orientée Object
Titre:
Add/removing objects
Divers
Thread ID:
00778783
Message ID:
00778783
Vues:
46
Hello *.*

When I remove an object and add other object from a customized method (I´m using F3 to access this method) and try to close my form, It (the form) don´t release from memory.
on key label F3 _screen.activeform.EnableMyComponents()

Class TformDados:
*-- EnableMyComponents is:
* here I have a class who clear my objects (recursive class)
this.AfterEnableMyComponents()

Form Clientes (frmClientes)
*-- AfterEnableMyComponents is:
thisform.pageframe.page2.removeobject("obj1")
thisform.pageframe.page2.addobject("obj_name","obj_name_class")
thisform.pageframe.page2.obj_name.visible = .T.
After execute the method AfterEnableMyComponents () the form not is closed ...

If I comment (*) the lines of the method AfterEnableMyComponents() and put the same code in a CommandButton it works right - My form close without problems.

Tanks in advance.
Répondre
Fil
Voir

Click here to load this message in the networking platform