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:
00875754
Vues:
19
Steve,

Are you trying to have a change in the variable change the position of the listbox at runtime?

There is another thing that may be affecting what you are seeing. VFP caches class definitions, when a property is assigned a value on the property sheet, the class definition in memory evaluates the item one time when the class is first instanced, every other instance will have that same first value. CLEAR CLASS (or CLEAR ALL) will flush the cached image from memory.

Here is some example code to illustrate this:
set deleted on
ox = createobject( "pseudostatic" )

? ox.cSetDeleted
ox = .null.

set deleted off

oy = createobject( "pseudostatic" )
? 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
>I have released and declared a public variable. This variable controls the top edge of a
>listbox. But unless I close vfp 6.0, I can't change the value of the variable??
>Relase BottomLeft
>Public BottomLeft
>BottomLeft = 100
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform