BrianCJ Posted November 7, 2008 Share Posted November 7, 2008 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 More sharing options...
Psibernetic Posted November 7, 2008 Share Posted November 7, 2008 (edited) 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 November 7, 2008 by Psibernetic [sup]Psibernetic[/sup]My Creations:X-HideSecuracy 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