snomy Posted November 22, 2007 Posted November 22, 2007 OK so ive got the 2d array below, works like a treat when displaying the values into a msgbox, however i want the first time it runs to set a control id, then second time to insert text into that control. As you can see my feeble attempt is commented out! Dim $arGrid[2][1] = [["[CLASS:EDIT; INSTANCE:1]"], ["Samosa"]] For $y = 0 To UBound($arGrid,2)-1; For $x = 0 To UBound($arGrid,1)-1; ; ControlSetText("Login", "", $arGrid[$x], $argrid[$y] ") MgBox(0,"Array element "&$x&","&$y, $arGrid[$x][$y]) Next Next Any ideas and help would be great. Its driving me bananas, and having read through the entire AutoIT help files for every occurrence of array, im still at a lost end!!! cheers.
BrettF Posted November 22, 2007 Posted November 22, 2007 OK so ive got the 2d array below, works like a treat when displaying the values into a msgbox, however i want the first time it runs to set a control id, then second time to insert text into that control. As you can see my feeble attempt is commented out! Dim $arGrid[2][1] = [["[CLASS:EDIT; INSTANCE:1]"], ["Samosa"]] For $y = 0 To UBound($arGrid,2)-1; For $x = 0 To UBound($arGrid,1)-1; ; ControlSetText("Login", "", $arGrid[$x], $argrid[$y] ") MgBox(0,"Array element "&$x&","&$y, $arGrid[$x][$y]) Next Next Any ideas and help would be great. Its driving me bananas, and having read through the entire AutoIT help files for every occurrence of array, im still at a lost end!!! cheers.Do you mean the first element of $i to = Control then the Second element of $i to = Text? Vist my blog!UDFs: Opens The Default Mail Client | _LoginBox | Convert Reg to AU3 | BASS.au3 (BASS.dll) (Includes various BASS Libraries) | MultiLang.au3 (Multi-Language GUIs!)Example Scripts: Computer Info Telnet Server | "Secure" HTTP Server (Based on Manadar's Server)Software: AAMP- Advanced AutoIt Media Player | WorldCam | AYTU - Youtube Uploader Tutorials: Learning to Script with AutoIt V3Projects (Hardware + AutoIt): ArduinoUseful Links: AutoIt 1-2-3 | The AutoIt Downloads Section: | SciTE4AutoIt3 Full Version!
snomy Posted November 22, 2007 Author Posted November 22, 2007 yeah thats exactly what i mean, can it be done?
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