Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Define Variable In Form
Message
From
01/09/2000 01:41:06
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Define Variable In Form
Miscellaneous
Thread ID:
00411598
Message ID:
00411598
Views:
41
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
Next
Reply
Map
View

Click here to load this message in the networking platform