-
Hi,
Is it a good idea to have the path to my database specified in a ini file and have my application retrieve the path by parsing the text in this ini file? I have my database moved around quite often and if I hard code the path in my application,its a pain to always go to my code and change the path.Also, what are the other settings/properties that go in an ini file.
Thanks
Zack
-
Hello Zack,
Maybe you can use:
1) drivelistbox / dirlistbox / Filelistbox
every time you are using your program, you have to navigate to your database,
2) Use a listbox, you have to type path and database every time,
3) Most handy: don't move your database.
Success,
Michelle
-
Or you could store the path to your database in the registry and retrieve it as the first task.
If the registry entry is empty then you pop up the drive/file to select it.
Then you can re-use this to be able to select a DIFFERENT database if need be in the future.
Thats what the registry is there for anyway :)