Sign in to follow this  
Followers 0
wakeNbake

Inireadsection bug or am i really really really dumb?

3 posts in this topic

Hello, all of a sudden my code just failed and inireadsection dosent read anything, it just says there is no array. I looked throo my code so many times i got pissed off and took the example code, and even that fails ?!?!!

Example code:

$var = IniReadSection("test.ini", "section2")
If @error Then 
    MsgBox(4096, "", "Error occurred, probably no INI file.")
Else
    For $i = 1 To $var[0][0]
        MsgBox(4096, "", "Key: " & $var[$i][0] & @CRLF & "Value: " & $var[$i][1])
    Next
EndIf

test.ini

[section2]
Key=Value
Key=Value
Key=Value
Key=Value

and @error is bein set all the time. Howcome from nowhere suddenly this stop working ?(yes they are in the same folder)

Share this post


Link to post
Share on other sites



It works for me. ?

Share this post


Link to post
Share on other sites

After resetting my computer it started work for me.... Strange

Share this post


Link to post
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
Sign in to follow this  
Followers 0