Results 1 to 5 of 5

Thread: INI Files

  1. #1
    Join Date
    Aug 2004
    Posts
    19

    Unanswered: INI Files

    Hello all

    How can I read from an INI file?
    I'm building an application and need to create an easy way to define default values for some parameters in my app.

    thanks in advance.

    Humberto

  2. #2
    Join Date
    Mar 2003
    Location
    The Bottom of The Barrel
    Posts
    6,102
    Provided Answers: 1
    How do you want to build your INI file? Format wise?

    The generic answer is to load a text file and read each line into your applicatoin, parsing as you go.
    oh yeah... documentation... I have heard of that.

    *** What Do You Want In The MS Access Forum? ***

  3. #3
    Join Date
    Aug 2004
    Posts
    19
    what i want is to read a file like this:

    [Section1]
    Key1=Value1
    Key2=Value2

    [Section2]
    Key1=Value1
    .
    .
    .

    But I already found 2 functions to read/write the INI file.

    Thanks anyway

  4. #4
    Join Date
    Mar 2003
    Location
    The Bottom of The Barrel
    Posts
    6,102
    Provided Answers: 1
    Right on. I would go with an xml file myself. Care to share which method you went with?
    oh yeah... documentation... I have heard of that.

    *** What Do You Want In The MS Access Forum? ***

  5. #5
    Join Date
    Aug 2004
    Posts
    19
    http://www.bygsoftware.com/Excel/VBA/ini_files.htm

    Works fine with a tiny change.


    Regards

    Humberto

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •