Dilwyn Jones wrote:
> For those of us who didn't pay enough attention the first time this
> was discussed, can you give everyone a short description of what the
> Home Dir is and how we use it? What advantages it gives us?

Let's say you have a directory win1_myprogs_ and a basic program
win1_myprogs_test_bas.

If you now execute it using
  EX win1_myprogs_test_bas

you can use, within the program, the function HOME_FILE$ to get the
string "win1_myprogs_test_bas", i.e. "from what file was I started",
using HOME_DIR$ you get "win1_myprogs_", i.e. "in what directory was I
started" and some more features.

This can for example be used to store configuration files along the
program, like in

OPEN_IN #3, HOME_DIR$&"test_cfg"

will load the file "test_cfg" that is in the same directory as your
basic program, no matter where your program is located! No manual path
configuration needed.

Clear enough?

Marcel

_______________________________________________
QL-Users Mailing List
http://www.q-v-d.demon.co.uk/smsqe.htm

Reply via email to