LoneWolf_2106 Posted January 11, 2018 Posted January 11, 2018 (edited) Hi everybody, is it possible to pass the elements of an array to GUICtrlSetData? Something like: GUICtrlSetData($idComboBox, $aFileList) I have an array containing a list of folders, the elements of the array should also be the items of a ComboBox. I don't know in advance how many elements the array might contain. Thanks in advance for your support. Edited January 11, 2018 by LoneWolf_2106
mikell Posted January 11, 2018 Posted January 11, 2018 Just use a For/Next loop to build a string with all array elements separated by a pipe "|" , and then GUICtrlSetData this string to the combo Example Local $list = "" For $i = 1 to $aFileList[0] $list &= $aFileList[$i] & "|" Next GUICtrlSetData($idComboBox, $list)
LoneWolf_2106 Posted January 11, 2018 Author Posted January 11, 2018 Thank you so much, i will try it :-)
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now