General information
Category:
Coding, syntax & commands
Environment versions
Network:
Windows 2003 Server
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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only