Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Releasing public variable
Message
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00875746
Message ID:
00876708
Vues:
10
It's still happening. I am developing a form but unless I close VFP the positions
for the form -- Left = xxx -- will not change. I now use clear all,
clear program, clear class - all class names I createobjects for, release all variables.
So, I was wondering how I can test to see what's still in memory. Is there a way I
can use the code above to do so? To see if TestForm is in memory?
Thanks
STeve

set deleted on
*set deleted off

ox = createobject( "pseudostatic" )

? ox.cSetDeleted
? om.cSetDeleted

ox = .null.

set deleted off

oy = createobject( "pseudostatic" )
? ox.cSetDeleted
? oy.cSetDeleted && ON, not OFF because the initial value
&&&&&&&&&&&&&&&&&&&&is copied from the cache as created at the first instance
oy = .null.

clear class pseudostatic

oz = createobject( "pseudostatic" )

? oz.cSetDeleted


define class pseudostatic as custom
cSetDeleted = set( "deleted" )
enddefine
DEFINE CLASS TestForm AS form
Top = 2
Left = 2
Height = 490
Width = 790
Caption = "Is this in memory?"
WindowState = 2
ENDDEFINE && contact2
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform