Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Define Variable In Form
Message
De
01/09/2000 01:41:06
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Define Variable In Form
Divers
Thread ID:
00411598
Message ID:
00411598
Vues:
42
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
Fil
Voir

Click here to load this message in the networking platform