Moin Zusammen,
Ich hab mich jetzt die letzten 2 Tage mit einer Fehlermeldung beschäftigt, für die ich einfach den Grund nich finde... Bitte helft mir... bin echt kurz vorm verzweifeln
[autoit]While 1
$msg = GUIGetMsg()
Select
Case $msg = $ButtonB
ExitLoop
Case $msg = $ButtonA
$CheckedArray[0] = 1
$CheckedArray[1] = 1
$CheckedArray[2] = 1
$CheckedArray[3] = 1
$CheckedArray[4] = 1
$CheckedArray[5] = 1
$CheckedArray[6] = 1
$CheckedArray[7] = 1
$CheckedArray[8] = 1
$CheckedArray[9] = 1
$CheckedArray[10] = 1
$CheckedArray[11] = 1
$CheckedArray[12] = 1
$CheckedArray[13] = 1
$CheckedArray[14] = 1
GUICtrlSetState ($CheckArray[0],$GUI_CHECKED)
GUICtrlSetState ($CheckArray[1],$GUI_CHECKED)
GUICtrlSetState ($CheckArray[2],$GUI_CHECKED)
GUICtrlSetState ($CheckArray[3],$GUI_CHECKED)
GUICtrlSetState ($CheckArray[4],$GUI_CHECKED)
GUICtrlSetState ($CheckArray[5],$GUI_CHECKED)
GUICtrlSetState ($CheckArray[6],$GUI_CHECKED)
GUICtrlSetState ($CheckArray[7],$GUI_CHECKED)
GUICtrlSetState ($CheckArray[8],$GUI_CHECKED)
GUICtrlSetState ($CheckArray[9],$GUI_CHECKED)
GUICtrlSetState ($CheckArray[10],$GUI_CHECKED)
GUICtrlSetState ($CheckArray[11],$GUI_CHECKED)
GUICtrlSetState ($CheckArray[12],$GUI_CHECKED)
GUICtrlSetState ($CheckArray[13],$GUI_CHECKED)
GUICtrlSetState ($CheckArray[14],$GUI_CHECKED)
Case $msg = $ButtonK
$CheckedArray[0] = 0
$CheckedArray[1] = 0
$CheckedArray[2] = 0
$CheckedArray[3] = 0
$CheckedArray[4] = 0
$CheckedArray[5] = 0
$CheckedArray[6] = 0
$CheckedArray[7] = 0
$CheckedArray[8] = 0
$CheckedArray[9] = 0
$CheckedArray[10] = 0
$CheckedArray[11] = 0
$CheckedArray[12] = 0
$CheckedArray[13] = 0
$CheckedArray[14] = 0
GUICtrlSetState ($CheckArray[0],$GUI_UNCHECKED)
GUICtrlSetState ($CheckArray[1],$GUI_UNCHECKED)
GUICtrlSetState ($CheckArray[2],$GUI_UNCHECKED)
GUICtrlSetState ($CheckArray[3],$GUI_UNCHECKED)
GUICtrlSetState ($CheckArray[4],$GUI_UNCHECKED)
GUICtrlSetState ($CheckArray[5],$GUI_UNCHECKED)
GUICtrlSetState ($CheckArray[6],$GUI_UNCHECKED)
GUICtrlSetState ($CheckArray[7],$GUI_UNCHECKED)
GUICtrlSetState ($CheckArray[8],$GUI_UNCHECKED)
GUICtrlSetState ($CheckArray[9],$GUI_UNCHECKED)
GUICtrlSetState ($CheckArray[10],$GUI_UNCHECKED)
GUICtrlSetState ($CheckArray[11],$GUI_UNCHECKED)
GUICtrlSetState ($CheckArray[12],$GUI_UNCHECKED)
GUICtrlSetState ($CheckArray[13],$GUI_UNCHECKED)
GUICtrlSetState ($CheckArray[14],$GUI_UNCHECKED)
Case $msg = $ButtonI
$CDrom = DriveGetDrive ( "CDROM" )
For $v = 1 to $CDrom[0]
$Bezeichnung = DriveGetLabel ( $CDrom[$v])
MsgBox(0, "", $Bezeichnung)
EndSelect
For $i = 0 to 14 step +1
$GUIread = GUICtrlRead ($CheckArray[$i])
If $GUIread = $GUI_CHECKED Then
$CheckedArray[$i] = 1
Else
$CheckedArray[$i] = 0
EndIf
Next
If $msg = $GUI_EVENT_CLOSE Then ExitLoop
WEnd
Ich bekomme Fehlermeldung:
Error:"EndSelect" statement with no matching "Select" statement.
Und wenn ich das EndSelect rausnehme, kommt die Fehlermeldung:
Error:"WEnd" statement with no matching "While" statement.
bitte um Hilfe
Danke schonmal im Vorraus
Peace D®iv3r