Jump to content

Recommended Posts

Posted

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!

Posted

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 location

So when I am at the end of the array I want to terminate the loop.

Posted

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

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...