Information générale
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Define Variable In Form
Dear all,
My apologize if my question sound silly and so stupid one, but I really need an answer
about this one.
How can I declare a variable that visible in this form only, I already tried to declare it in
form load event but when I want to use that variable in form unload event it doesn't
visible anymore.
Want I want to do is, like I used to do in MS FoxPro 2.6 for DOS, when I declare a
variable in setup procedure on screen, it visible in all valid and when procedure in
that screen only, but how can I do that thing using VFP 6.0 ?
Below is my code:
procedure form load :
private pcTeks
pcTeks = "Hallo"
end procedure
procedure form unload :
wait window pcTeks
end procedure
But, if I using PUBLIC, it work just fine, however I don't need that variable to exist in
any other form that I used.
Thanks In Advance
Yungkie
P.S.: I'm a beginner in VFP, my background is FoxPro 2.6 for DOS
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