Results 1 to 2 of 2
  1. #1
    Join Date
    Mar 2004
    Endicott NY

    Unanswered: 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.

  2. #2
    Join Date
    Apr 2004
    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts