Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Removeobject does not remove
Message
De
12/01/2012 04:28:30
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
À
11/01/2012 06:42:35
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9
Divers
Thread ID:
01532655
Message ID:
01532791
Vues:
48
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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform