fjork_duf Posted January 14, 2005 Share Posted January 14, 2005 How do arrays/lists work in this scripting language? I am used to perl, but looking through some of this code I can't quite understand how exactly it works. I looked through the help file and only found information on user implemented functions regarding arrays. Thanks! Link to comment Share on other sites More sharing options...
fjork_duf Posted January 14, 2005 Author Share Posted January 14, 2005 How do arrays/lists work in this scripting language? I am used to perl, but looking through some of this code I can't quite understand how exactly it works. I looked through the help file and only found information on user implemented functions regarding arrays. Thanks!<{POST_SNAPBACK}>I guess I should say what I want to do. I have an array with different entries. I want to sort of a foreach type of operation. Ie. in pseudo code:While not at end of array do something point to the next array locationSo when I am at the end of the array I want to terminate the loop. Link to comment Share on other sites More sharing options...
SlimShady Posted January 14, 2005 Share Posted January 14, 2005 Dim $MyArr[4] For $i = 0 To 3 $MyArr[$i] = "Item " & $i Next For $i = 0 To 3 $val = $MyArr[$i] MsgBox(64, "Debug", "$val:" & @CRLF & $val) Next 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