> 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 Yes, very clear, and I remember about it now (doh!).
A little bit like how PC programs for example know where they were started from. Although I'm not editing QL Today any more, I'm sure Geoff would like a little bit of information about how to use this potentially extremely useful new facility. -- Dilwyn Jones -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.344 / Virus Database: 267.12.6/152 - Release Date: 31/10/2005 _______________________________________________ QL-Users Mailing List http://www.q-v-d.demon.co.uk/smsqe.htm