Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
RemoveObject in Init
Message
From
28/02/2001 08:16:58
 
 
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00480229
Message ID:
00480481
Views:
8
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform