Jump to content

Question about IniReadSection


Damein
 Share

Recommended Posts

For some reason I can't get this to work:

$var = IniReadSection("C:\Users\***\Desktop\Test\Test\Test.ini", "Test")
MsgBox(0, "test", $Var)

The msgbox comes back as empty ;)

The ini looks like this:

[Test]
TestKey=TestVar

*is confused*

MCR.jpg?t=1286371579

Most recent sig. I made

Quick Launcher W/ Profiles Topic Movie Database Topic & Website | LiveStreamer Pro Website | YouTube Stand-Alone Playlist Manager: Topic | Weather Desktop Widget: Topic | Flash Memory Game: Topic | Volume Control With Mouse / iTunes Hotkeys: Topic | Weather program: Topic | Paws & Tales radio drama podcast mini-player: Topic | Quick Math Calculations: Topic

Link to comment
Share on other sites

Hello Damien,

From the Help File 'Returns a 2 dimensional array where element[n][0] is the key and element[n][1] is the value.' 'The number of elements returned will be in $result[0][0].'

IniReadSection returns a Multi-Dimensional Array.

So try this:

#include <Array.au3>

$var = IniReadSection("C:\Users\***\Desktop\Test\Test\Test.ini", "Test")
_ArrayDisplay($var,'Test.ini')

Realm

My Contributions: Unix Timestamp: Calculate Unix time, or seconds since Epoch, accounting for your local timezone and daylight savings time. RegEdit Jumper: A Small & Simple interface based on Yashied's Reg Jumper Function, for searching Hives in your registry. 

Link to comment
Share on other sites

Yeah, sorry, I didn't get a chance to edit my post. I feel stupid ^^;

I found that section after I posted, silly me! ;)

MCR.jpg?t=1286371579

Most recent sig. I made

Quick Launcher W/ Profiles Topic Movie Database Topic & Website | LiveStreamer Pro Website | YouTube Stand-Alone Playlist Manager: Topic | Weather Desktop Widget: Topic | Flash Memory Game: Topic | Volume Control With Mouse / iTunes Hotkeys: Topic | Weather program: Topic | Paws & Tales radio drama podcast mini-player: Topic | Quick Math Calculations: Topic

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...