|
-
Mar 27th, 2000, 11:08 AM
#1
Thread Starter
Junior Member
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
-
Mar 27th, 2000, 01:19 PM
#2
Hyperactive Member
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
-
Mar 27th, 2000, 01:24 PM
#3
Hyperactive Member
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|