If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > Other > Foxbase+/Mac assignment of variables

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 03-31-04, 21:55
jpp jpp is offline
Registered User
 
Join Date: Mar 2004
Location: Endicott NY
Posts: 1
Foxbase+/Mac assignment of variables

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.
Reply With Quote
  #2 (permalink)  
Old 04-06-04, 17:45
RafM RafM is offline
Registered User
 
Join Date: Apr 2004
Posts: 5
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.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On