jasny Posted December 12, 2011 Share Posted December 12, 2011 Guys, can you tell me how to make it work in Autoit ? : Global $books[6][1] Dim $book[1] $book[0] = "Suvorow" $books[0] = $book Link to comment Share on other sites More sharing options...
AdmiralAlkex Posted December 12, 2011 Share Posted December 12, 2011 (edited) You already did it.Global $books[6][1] Dim $book[1] $book[0] = "Suvorow" $books[0][0] = $bookNote that $books is two dimensional, you can't skip dimensions!To use book later, use a temporary variable to reverse what you did.$temp = $books[0][0]consolewrite($temp[0])By the way, you shouldn't use Dim. Better to specify scope, less confusion later.If you have any questions, look at the Array Tutorial in the wiki.Edit: edits Edited December 12, 2011 by AdmiralAlkex .Some of my scripts: ShiftER, Codec-Control, Resolution switcher for HTC ShiftSome of my UDFs: SDL UDF, SetDefaultDllDirectories, Converting GDI+ Bitmap/Image to SDL Surface Link to comment Share on other sites More sharing options...
jasny Posted December 12, 2011 Author Share Posted December 12, 2011 Thank you 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