Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Global Variable NOT!!!
Message
 
To
09/04/2006 21:00:59
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01111807
Message ID:
01111938
Views:
18
Mal;

How is glTable used? Does it include path statements? Could you give one example? Does it refer to local or server tables? I am always full of questions! :)

I could be way off but I was taught to not use global variables in OOP. They provide interesting maintenance problems at one time or another. Creating an object and exposing its properties might be a good consideration. But then again, if it works don’t fix it!

Tom


>Hi:
>
>I'm a little lost and would like a little help.
>
>The following works find compiled using VFP 7 and loaded on a new Win98 machine.
>
>I have a logical global variable, "glTable", declared PUBLIC in my main.prg of the project.
>When I "run" the program from the project manger, all is well.
>When I create an EXE and run it on the same machine, the one with VFP loaded, again, all is well.
>
>However, when I load the program on a new WinXP machine, my program complains that it can't find variable "glTable".
>
>I thought global variables were available throughout an entire program once delared PUBLIC.
>
>Any ideas?
>
>Mal
Previous
Reply
Map
View

Click here to load this message in the networking platform