Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Removeobject does not remove
Message
From
12/01/2012 04:28:30
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
11/01/2012 06:42:35
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9
Miscellaneous
Thread ID:
01532655
Message ID:
01532791
Views:
49
This message has been marked as a message which has helped to the initial question of the thread.
>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

I don't think you're gaining anything much by removing objects. Delayed instantiation, yes, we all do that and it's a nice trick - you don't waste time instantiating objects which aren't needed, and may not be needed at all (the user may not even visit that part of the form). But destroying objects which may be needed again - you do unnecessary work. Just hide it and, if needed again, show it.

At least that's what I do in such cases - you may have your reasons.

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