Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Global Variable NOT!!!
Message
 
À
09/04/2006 21:00:59
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Divers
Thread ID:
01111807
Message ID:
01111938
Vues:
19
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform