Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Define Variable In Form
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00411598
Message ID:
00411599
Vues:
10
Hello,

Make a custom property of the form. Then you can refer to ThisForm.cTeks throughout the form and it will not interfere with other forms' properties.

Cheers,

Andrew




>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


If we were to introduce Visual FoxBase+, would we be able to work from the dotNet Prompt?


From Top 22 Developer Responses to defects in Software
2. "It’s not a bug, it’s a feature."
1. "I thought I fixed that."


All my FoxTalk and other articles are available on my web site.


Unless specifically identified otherwise, anthing posted here is purely my opinion and may or may not reflect the policies or practices of Microsoft.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform