Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Removeobject does not remove
Message
From
11/01/2012 06:42:35
 
 
To
11/01/2012 04:25:50
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9
Miscellaneous
Thread ID:
01532655
Message ID:
01532723
Views:
38
it's added to this form at instantiation via :
	IF NOT PEMSTATUS(THISFORM, [cntFILENOTE], 5)
		THISFORM.NEWOBJECT([cntFILENOTE], [cntFILENOTE], FULLPATH([modules\vCPR5.vcx]))
		THISFORM.cntFILENOTE.LEFT	= 160
		THISFORM.cntFILENOTE.TOP	= 264
		THISFORM.cntFILENOTE.HEIGHT = THISFORM.HEIGHT - 264
		THISFORM.cntFILENOTE.ANCHOR	= 15
		THISFORM.cntFILENOTE.VISIBLE = .T.
	ENDIF
i swap out the containers when certain buttons are clicked to show different data as needed. this is a form to replace an existing query form where all data are collected before the form becomes visible. I am just trying to speed things up and only bring in data which are needed by all users. any less frequently used data are recalled by buttons

Thanks

Peter


>>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().
Peter Cortiel
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform