Quantcast
Channel: AutoIt v3 - General Help and Support
Viewing all articles
Browse latest Browse all 12506

Refresh Combo Box after first combo box option changes

$
0
0

Ive got two combo box's, the first one you select the folder, and the second one lists all the folders within that folder for you to select from.

 

How can I get the second combo to rescan when I change select of the first one?

 

This is what ive got at the moment, I just need it to update the list if I change my folder selected in the first combo.

$Folder = GUICtrlCreateCombo("C:\Folder1", 142, 122, 435, 22, BitOR($CBS_DROPDOWN,$CBS_AUTOHSCROLL)) GUICtrlSetData(-1, "C:\Folder2") Local $folderselector = GUICtrlRead($Folder) If $folderselector = "C:\Folder1" Then Local $FileList = _FileListToArray("C:\Folder1") _ArrayDelete($FileList, 0) $sFileList = _ArrayToString($FileList, "|") Else $folderselector = "C:\Folder2" Then Local $FileList = _FileListToArray("C:\Folder2") _ArrayDelete($FileList, 0) $sFileList = _ArrayToString($FileList, "|") EndIf

Viewing all articles
Browse latest Browse all 12506

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>