Func _UpdateList($list, $ini, $inisection) Local $line Local $lines Local $data $lines = _FileCountLines($ini) $line = $lines -1 Do $data = IniRead($ini, $inisection, $line, "1") $line = $line - 1 GuiCtrlSetData($list, $data) Until $line = 1 EndFunc Func _WriteIni($name, $section, $dataname) FileOpen($name, 0);create the ini if it doesnt exist. FileClose($name) Local $max $max = _FileCountLines($name) $max = $max - 1 iniwrite($name, $section, $max, $dataname) EndFunc
List From Ini Funcs
Posted 18 August 2006 - 10:26 PM
Posted 19 August 2006 - 04:42 AM
So this would be used especially for a Gui script?GuiCtrlSetData($list, $data)
Looks like you did not get the handle from FileOpen to FileClose the file.
FileOpen($name, 0);create the ini if it doesnt exist.
Too be honest after looking at the logic of them, were these INIRead/INIWrite wrappers needed at all?
Ok, see wrappers made for indexing $max, but that would only need a indexer line and the INI* line?
Edited by MHz, 19 August 2006 - 04:45 AM.
Posted 19 August 2006 - 05:46 PM
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users