Wondered if you could help me with a Foxbase+/Mac question?
I am a Foxbase+/Mac 2.01 user and am trying to update some programs that I have been running for many years.
The question I have is "can a variable be used to specify a database name"?
Such as if a database called T1969.dbf needs to be used in a number of programs, can a variable such as STORE T1969 TO INQ_LIST be used to place that text "T1969" into each of the programs as a PUBLIC VARIABLE and the term INQ_LIST.dbf
then be entered in each program so that each program then calls up T1969.dbf?
I've been trying various versions of the above approach but get errors like "file does not exist" or "Syntax error".
Any suggestions would be very much appreciated.
Hi ... I'm not sure I understand what you want to do.
You ask if a variable can specify a "database" name ... the answer is yes. You have to assign the "database" name to a character variable. In your example STORE T1969 TO INQ_LIST you are missing the quotes. If instead you typed STORE "T1969" TO INQ_LIST, you could subsequently, among other things, execute USE &INQ_LIST and things like that.