AndrewMozley
Programmer
I have an application where I invite the user to open a database :
OPEN DATABASE ?
This command displays a window “Select Database name” and the user may navigate to the folder containing the .dbc file.
I then open several tables within that database, and that is fine. However I would also like to open another specific free table, which is in the same folder as the database, but is not part of the database.
How can I find the name of the folder which he has just navigated to successfully? I would prefer not to display another folder selection window, because I feel that I ought to know which folder he is talking about.
(The folder does not appear to be HOME() or CURDIR())
On a related point, how can I find the name of the current DEFAULT folder? I can use SET DEFAULT TO to set it, but is there a command or function to find what it is?
OPEN DATABASE ?
This command displays a window “Select Database name” and the user may navigate to the folder containing the .dbc file.
I then open several tables within that database, and that is fine. However I would also like to open another specific free table, which is in the same folder as the database, but is not part of the database.
How can I find the name of the folder which he has just navigated to successfully? I would prefer not to display another folder selection window, because I feel that I ought to know which folder he is talking about.
(The folder does not appear to be HOME() or CURDIR())
On a related point, how can I find the name of the current DEFAULT folder? I can use SET DEFAULT TO to set it, but is there a command or function to find what it is?