Jump to content
Sign in to follow this  
BrianCJ

using variables from an array?

Recommended Posts

BrianCJ

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?

Share this post


Link to post
Share on other sites
Psibernetic

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

Share this post


Link to post
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
Sign in to follow this  

×