Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Add/removing objects
Message
From
17/04/2003 08:50:36
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Title:
Add/removing objects
Miscellaneous
Thread ID:
00778783
Message ID:
00778783
Views:
45
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.
Reply
Map
View

Click here to load this message in the networking platform