Results 1 to 4 of 4

Thread: Resetting Defaults in an Executable

  1. #1
    Guest
    I have an application written in VB6 (Enterprise Edition) with one form and all sorts of code to do all sorts of things.

    One piece is to change the default values on startup within the form. I know that there are at least two ways to reset defaults, but I don't know how to perform them.

    1. Save the form so that the new defaults will come up on load, automatically. I don't know that this can be done in an exe. At least, I can't find the command to do it.

    2. I am perfectly willing to write, read and modify a textfile holding the default values. How do I guarrantee that the file will be findable? I really don't wish to use "C:\Windows.... unless absolutely necessary.

    Thank You
    DerFarm

  2. #2
    Frenzied Member Jop's Avatar
    Join Date
    Mar 2000
    Location
    Amsterdam, the Netherlands
    Posts
    1,986
    Actually, you're answering Q1 in Q2
    Write all the values to a file (or registry, but I personally prefer a file (INI if you want)) and load them at start of the prog.
    You can store the file at App.Path (the path where the prog is located) if you want!
    Jop - validweb.nl

    Alcohol doesn't solve any problems, but then again, neither does milk.

  3. #3
    Guest

    Got it!

    Most excellent.

    It is JUST what I wanted.



    Thanks
    DerFarm

  4. #4
    Frenzied Member Jop's Avatar
    Join Date
    Mar 2000
    Location
    Amsterdam, the Netherlands
    Posts
    1,986
    Is that meant cinically or do you really have enough info?
    Jop - validweb.nl

    Alcohol doesn't solve any problems, but then again, neither does milk.

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