Results 1 to 3 of 3

Thread: Need suggestion

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Feb 2000
    Location
    Medford,MA,USA
    Posts
    23
    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

  2. #2
    Hyperactive Member
    Join Date
    Jul 2002
    Location
    Canada
    Posts
    455
    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

  3. #3
    Hyperactive Member
    Join Date
    Mar 2000
    Posts
    461
    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
  •  



Click Here to Expand Forum to Full Width