Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How do I set global variable
Message
De
27/01/2004 17:35:35
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00871154
Message ID:
00871160
Vues:
12
You have many ways to do this, the easiest is
PUBLIC myVariable myValue

Myself I prefer
_screen.addproperty('myVariable','myText')
_screen.addproperty('myVariable',myNumeric)

Or you can create a class and add the properties to that class.

>is a way to create a gobal variable somewhere outside forms, such as in main.prg so that all of my forms can access this variable. I need to set some directory paths, but I don't know where the directories are going to be and it would be much easier to just set it at one location. Is a better solution than this. I'm running vfp8.
>
>thanks
>nick patel
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform