Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Thisform.INIT variable scoping
Message
De
02/05/2007 13:21:19
 
 
À
02/05/2007 13:18:56
Jay Johengen
Altamahaw-Ossipee, Caroline du Nord, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 8 SP1
Divers
Thread ID:
01221866
Message ID:
01221877
Vues:
11
Then definitely create a form property and set its value right after the value is set on the form object. Question though, why can't you just reference the value of the form object instead of creating a variable at all or creating another form property? What are you going to do with the value once you get it that you need a separate variable for?

>Thought of that, but in the Load the member's have not been created yet, right? I need to reference a value on one of the form's objects. I want to do it in the best place that it will only be set one time when the form is run.
>
>>Nope. Put it in the load of the form, but better, create a form property and use it instead.
>>
>>
>>>Been out of work or working so much in old FPW that I have forgotten this. I set a variable in the INIT of a form and it is then out of scope when the INIT is exited. I thought if I set it in the INIT it would remain in scope for all of the form's members. Thanks!
.·*´¨)
.·`TCH
(..·*

010000110101001101101000011000010111001001110000010011110111001001000010011101010111001101110100
"When the debate is lost, slander becomes the tool of the loser." - Socrates
Vita contingit, Vive cum eo. (Life Happens, Live With it.)
"Life is not measured by the number of breaths we take, but by the moments that take our breath away." -- author unknown
"De omnibus dubitandum"
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform