Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Variable declaration
Message
 
To
17/05/1999 13:03:16
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00219669
Message ID:
00219689
Views:
18
> in vb i can declare a variable in the general declarations section then i can
> use this variable throughout the entire form via different procedures and so
> on i can change the value and everything now in foxpro i know this can be
> done as well but where do i declare the global variable

You can define public variables in any code snippet (such as the INIT), like so:
PUBLIC VarName
BUT: This is very bad design and considered a big no-no in Visual FoxPro. You should rather define custom properties instead.

Markus




Markus Egger
President, EPS Software Corp
Author, Advanced Object Oriented Programming with VFP6
Publisher, CoDe Magazine
Microsoft MVP since 1995
Previous
Reply
Map
View

Click here to load this message in the networking platform