I have a problem using this two functions "FileSelectFolder" and "_FileListToArray".
Whenever I click cancel button on the "FileSelectFolder". It will store value to my variable.
Is there anyway to stop the variable from taking values?
AutoIt
; Loop until user exits While 1 $msg = GUIGetMsg() Select Case $msg = $GUI_EVENT_CLOSE Exit Case $msg = $btn_browse $ordner = FileSelectFolder("Choose folder","") $dateien = _FileListToArray($ordner, "*", 1) _GUICtrlListBox_BeginUpdate($hListBox) For $i = 1 To UBound($dateien) - 1 ; Add file _GUICtrlListBox_AddString($hListBox, $dateien[$i]) Next _GUICtrlListBox_EndUpdate($hListBox) Case $msg = $btn_transfer ScanFolder($ordner) EndSelect WEnd