FinalVersion Posted May 5, 2009 Share Posted May 5, 2009 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! [center][+] Steam GUI [+][+] Clipboard Tool [+][+] System :: Uptime [+][+] StarCraft II Mouse Trap [+][/center] Link to comment Share on other sites More sharing options...
Richard Robertson Posted May 5, 2009 Share Posted May 5, 2009 That's not an INI problem, that's your problem. $var & "|" & $var2 & "|" etc. Link to comment Share on other sites More sharing options...
FinalVersion Posted May 5, 2009 Author Share Posted May 5, 2009 (edited) 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 May 5, 2009 by Godly [center][+] Steam GUI [+][+] Clipboard Tool [+][+] System :: Uptime [+][+] StarCraft II Mouse Trap [+][/center] Link to comment Share on other sites More sharing options...
Richard Robertson Posted May 5, 2009 Share Posted May 5, 2009 For $i = 1 To $IniRead[0] $KeyRead = IniReadSection($Ini, $IniRead[$i]) For $j = 1 To $KeyRead[0][0] GUICtrlCreateListViewItem($IniRead[$i]& "|" & $KeyRead[$j][0] & "|" & $KeyRead[$j][1], $ListView1) Next Next Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now