Information générale
Catégorie:
Codage, syntaxe et commandes
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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement