Hi,
ich will in einer Ini Datei die Schlüssel nach Größe sortieren (1-31) und dabei die Werte entsprechend mitziehen.
Mein Ansatz war so:
Spoiler anzeigen
$sections = IniReadSectionNames(@ScriptDir&"/MonthCal.ini")
For $a = 0 To 100 Step +1
$sections = IniReadSectionNames(@ScriptDir&"/MonthCal.ini")
For $i = 1 To $sections[0]
$wertkey = IniReadSection(@ScriptDir&"/MonthCal.ini", $sections[$i])
_ArraySort($wertkey, 0, 0, 0, 0)
IniWrite(@ScriptDir&"/MonthCal.ini", $sections[$i], $wertkey[$i][0], $wertkey[$i][1])
Next
Next
Also zuerst auslesen, dann sortieren und wieder neu reinschreiben. Aber irgendwie haperts noch, weil er anscheinend alles in derselben Reihenfolge wieder hineinschreibt ![]()
Vielen Dank für eure Unterstützung
Aquaplant
EDIT: "Ini" hängt dran, muss nur noch umbenannt werden