hogfan Posted February 27, 2011 Posted February 27, 2011 I am struggling a bit trying to populate a combobox from an array I have created. I create my array: Dim $arrSPDS[7] $arrSPDS[0] = "128" $arrSPDS[1] = "256" $arrSPDS[2] = "512" $arrSPDS[3] = "1536" $arrSPDS[4] = "3584" $arrSPDS[5] = "7200" $arrSPDS[6] = "14976" The control is created in my GUI: $cmbSPD = GUICtrlCreateCombo("", 40, 184, 113, 25, BitOR($CBS_DROPDOWN,$CBS_AUTOHSCROLL)) Then I try to load the array to the combobox: GUICtrlSetData($cmbSPD, "|" & _ArrayToString($arrSPDS)) However, I keep getting this error at runtime: C:\Program Files\AutoIt3\Examples\GUI\Simple\Script_Tools.au3 (43) : ==> Unknown function name.: GUICtrlSetData($cmbSPD, "|" & _ArrayToString($arrSPDS)) GUICtrlSetData($cmbSPD, "|" & ^ ERROR >Exit code: 1 Time: 0.209 What am I missing here? I've done a lot with Viusal Basic in the past, but am having some problems getting started with AutoIT. Thanks for any help. -hogfan
PsaltyDS Posted February 27, 2011 Posted February 27, 2011 How about this: #include <Array.au3> Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law
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