Now my problem is different :S
This code:
$temp = StringSplit(GUICtrlRead($CitemsE), ",")
$tmax = _ArrayMaxIndex($temp) + 1
_GUICtrlListBox_ResetContent($Cindex[$Cindx])
For $i = 1 To $tmax
_GUICtrlListBox_AddString($Cindex[$Cindx], $temp[$i])
Next
Does not always work??
My example string is 1,2,3,4,5,6,7
And the listbox only has 1 item in it "1"
The other one is 1,2
and that is the same
then i tried 7,3
and that worked just fine!
what is wrong with this?
Edit:
Tried something new and it works:
$temp = StringSplit(GUICtrlRead($CitemsE), ",")
_GUICtrlListBox_ResetContent($Cindex[$Cindx])
For $i = 1 To $temp[0]
_GUICtrlListBox_AddString($Cindex[$Cindx], $temp[$i])
Next
I'd still like to know what the difference is for the future?