Jump to content

using variables from an array?


BrianCJ
 Share

Recommended Posts

I haven't used autoit in a long long time, but like in AS when ive done arrays it was declared like

myArray = new Array("0xffffff",125,500);

and to use the array it was just

myArray[0]

in autoit i know to use the array i would be using

$myArray[0]

but i'm not sure how to declare the array in a similar fashion, any suggestions or tips?

Link to comment
Share on other sites

I haven't used autoit in a long long time, but like in AS when ive done arrays it was declared like

myArray = new Array("0xffffff",125,500);

and to use the array it was just

myArray[0]

in autoit i know to use the array i would be using

$myArray[0]

but i'm not sure how to declare the array in a similar fashion, any suggestions or tips?

Try this:

Dim $Test[3] = ["0xffffff",125,500]

only thing really different is the explicit need to dimension array with a Ubound (last index in the array), calling is the same.

msgbox(0, "test of index", $Test[0])

replace $Test[0] with $Test[1] and so on

Edited by Psibernetic

[sup]Psibernetic[/sup]My Creations:X-HideSecuracy

Link to comment
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
 Share

  • Recently Browsing   0 members

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