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