Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Removeobject does not remove
Message
From
11/01/2012 04:25:50
Dragan Nedeljkovich
Now officially retired
Zrenjanin, Serbia
 
 
To
10/01/2012 13:30:56
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9
Miscellaneous
Thread ID:
01532655
Message ID:
01532716
Views:
45
>i have the following code to remove a container object when not needed anymore:
>
>IF PEMSTATUS(THISFORM, [cntEmployer], 5)
>	thisform.cntEmployer.VISIBLE=.f.
>	thisform.RemoveObject([cntEmployer])
>ENDIF 
>
>
>no error but the object deas not get removed.
>any thoughts?

If it's defined as a member object in the parent class, you can't really remove it. This works only for the objects you added at the current level - either in the form/class itself (not the parent class), or via .addObject() or .newObject().

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform