Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Alternative to public variables
Message
 
À
11/06/2002 16:07:35
Sammy Derban
Ghana Telecom
Accra, Ghana
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00667071
Message ID:
00667557
Vues:
22
Sammy,
we use a number of memvars that are created in our main program. They are read in from a dbf using:

USE VARTABLE.DBF
SCAN
MVAR = VARTABLE.MEMVARNAME
&MVAR = VARTABLE.VALUE
ENDSCAN

All vars created this way start with xx such as xxCompanyName. That makes it easy to know which ones to not change.

We also have a user setup program that allows the user to change some of the values.

John.


>Hello All,
>Can someone show me the alternatives using public variable.
>I have used them extensively in my application but i hear it can get really dangerous.
>
Beer is proof that God loves man, and wants him to be happy. - Benjamin Franklin
John J. Henn
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform