Hallo Community
Ich habe ein Problem.
Spoiler anzeigen
[autoit]
#include
#include
#include
#include
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 317, 233, 192, 124)
$List1 = GUICtrlCreateList("", 8, 8, 169, 201)
GUICtrlSetData(-1, "Text1|Text2|Text3|Text4|Text5")
$deleteall = GUICtrlCreateButton("Alle Löschen", 184, 16, 75, 25, $WS_GROUP)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $deleteall
$iCount = _GUICtrlListBox_GetCount($List1)
for $i = 0 to $iCount
_GUICtrlListBox_DeleteString($List1, $i)
Next
EndSwitch
WEnd
Bei dem Skript müssten normal alle Werte gelöscht werden...Warum funzt das nicht?