BobEubanks Posted June 18, 2008 Share Posted June 18, 2008 ... This functionality is also stated in wiki under Loops, section "For Each" In short, I cannot get this to work, with either the example listed in the wiki, or the one listed in the online help file. Listed below is the example from the help file: ;Using an Array Dim $aArray[4] $aArray[0]="a" $aArray[1]=0 $aArray[2]=1.3434 $aArray[3]="test" $string = "" FOR $element IN $aArray $string = $string & $element & @CRLF NEXT Msgbox(0,"For..IN Arraytest","Result is: " & @CRLF & $string) Each time you run the code in this example, the interpreter halts at: FOR $element IN $aArray FOR $element ^ ERROR Is iterating over Objects and Arrays in this manner not or no longer supported? Link to comment Share on other sites More sharing options...
Kerros Posted June 18, 2008 Share Posted June 18, 2008 That example worked just fine for me....running 3.2.12.1 under SciTE Kerros===============================================================How to learn scripting: Figure out enough to be dangerous, then ask for assistance. Link to comment Share on other sites More sharing options...
BobEubanks Posted June 18, 2008 Author Share Posted June 18, 2008 Ahh.. thanks. It was the AutoIt ver I was running.. 3.1.1.0It works now after upgrading to 3.2.12.1Thanks!That example worked just fine for me....running 3.2.12.1 under SciTE Link to comment Share on other sites More sharing options...
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