Jump to content
Sign in to follow this  
FinalVersion

Ini Problems

Recommended Posts

FinalVersion

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!

Share this post


Link to post
Share on other sites
Richard Robertson

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

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

Share this post


Link to post
Share on other sites
FinalVersion

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

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.