Sign in to follow this  
Followers 0
hogfan

ArrayToString error help..........

2 posts in this topic

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

Share this post


Link to post
Share on other sites



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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0