Jump to content

Ini Problems


Recommended Posts

Current Code:

If @error Then
        TrayTip("Error", "You Didn't Select A File", 1, 1)
    Else
        For $i = 1 To $IniRead[0]
            $KeyRead = IniReadSection($Ini, $IniRead[$i])
            GUICtrlCreateListViewItem($IniRead[$i]|$KeyRead[$i][0]|$KeyRead[$i][1], $ListView1)
    Next
EndIf

Problem is arising from

GUICtrlCreateListViewItem($IniRead[$i]|$KeyRead[$i][0]|$KeyRead[$i][1], $ListView1)

Help is greatly Appreciated!

Link to comment
Share on other sites

That's not an INI problem, that's your problem.

$var & "|" & $var2 & "|" etc.

Ofc its not an ini problem, problem with ini functions. Why so serious?

E:

Func _Add()
    $Ini = FileOpenDialog("Load A Ini", @ScriptDir & "", "Configuration Files (*.ini)", 1 + 2)
    $IniRead = IniReadSectionNames($Ini)
    If @error Then
        TrayTip("Error", "You Didn't Select A File", 1, 1)
    Else
        For $i = 1 To $IniRead[0]
            $KeyRead = IniReadSection($Ini, $IniRead[$i])
            GUICtrlCreateListViewItem($IniRead[$i]& "|" & $KeyRead[$i][0] & "|" & $KeyRead[$i][1], $ListView1)
        Next
    EndIf
EndFunc   ;==>_Add

And it didn't work either ^_^

Edited by Godly
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...