ThomQW Posted September 5, 2009 Posted September 5, 2009 Hi, I need some help initializing a multi-dimensional array. The array is 5 rows and 3 columns. I tried this: Dim $avArray[5][3] = [ [ "0588749", "70423", "alex169" ], ["0511902", "128987", "arar861"], ["0574334", "414633", "aren473"], ["5623233", "66354", "baker33"], ["0523123", "86149", "bane910"] ] and I receive the following error: C:\Program Files\AutoIt3\Include\Array.au3 (666) : ==> Array variable has incorrect number of subscripts or subscript dimension range exceeded.: $t = $array[$i] $t = ^ ERROR >Exit code: 1 Time: 0.419 I've tried various alterations with no better results. Can anyone help me, what am I doing wrong? Thanks in advance! THOMQW
Yashied Posted September 5, 2009 Posted September 5, 2009 Hi, I need some help initializing a multi-dimensional array. The array is 5 rows and 3 columns. I tried this: Dim $avArray[5][3] = [ [ "0588749", "70423", "alex169" ], ["0511902", "128987", "arar861"], ["0574334", "414633", "aren473"], ["5623233", "66354", "baker33"], ["0523123", "86149", "bane910"] ] and I receive the following error: C:\Program Files\AutoIt3\Include\Array.au3 (666) : ==> Array variable has incorrect number of subscripts or subscript dimension range exceeded.: $t = $array[$i] $t = ^ ERROR >Exit code: 1 Time: 0.419 I've tried various alterations with no better results. Can anyone help me, what am I doing wrong? Thanks in advance! THOMQW What is $array? Maybe $avArray[$i][...]? My UDFs: iKey | FTP Uploader | Battery Checker | Boot Manager | Font Viewer | UDF Keyword Manager | Run Dialog Replacement | USBProtect | 3D Axis | Calculator | Sleep | iSwitcher | TM | NetHelper | File Types Manager | Control Viewer | SynFolders | DLL Helper Animated Tray Icons UDF Library | Hotkeys UDF Library | Hotkeys Input Control UDF Library | Caret Shape UDF Library | Context Help UDF Library | Most Recently Used List UDF Library | Icons UDF Library | FTP UDF Library | Script Communications UDF Library | Color Chooser UDF Library | Color Picker Control UDF Library | IPHelper (Vista/7) UDF Library | WinAPI Extended UDF Library | WinAPIVhd UDF Library | Icon Chooser UDF Library | Copy UDF Library | Restart UDF Library | Event Log UDF Library | NotifyBox UDF Library | Pop-up Windows UDF Library | TVExplorer UDF Library | GuiHotKey UDF Library | GuiSysLink UDF Library | Package UDF Library | Skin UDF Library | AITray UDF Library | RDC UDF Library Appropriate path | Button text color | Gaussian random numbers | Header's styles (Vista/7) | ICON resource enumeration | Menu & INI | Tabbed string size | Tab's skin | Pop-up circular menu | Progress Bar without animation (Vista/7) | Registry export | Registry path jumping | Unique hardware ID | Windows alignment More...
weaponx Posted September 5, 2009 Posted September 5, 2009 There is nothing wrong with your array initialization. The error is coming from an Array.au3 function obviously, which doesn't support multidimensional arrays (With some exceptions).
PsaltyDS Posted September 5, 2009 Posted September 5, 2009 (edited) I need some help initializing a multi-dimensional array. The array is 5 rows and 3 columns. I tried this: Dim $avArray[5][3] = [ [ "0588749", "70423", "alex169" ], ["0511902", "128987", "arar861"], ["0574334", "414633", "aren473"], ["5623233", "66354", "baker33"], ["0523123", "86149", "bane910"] ] and I receive the following error: C:\Program Files\AutoIt3\Include\Array.au3 (666) : ==> Array variable has incorrect number of subscripts or subscript dimension range exceeded.: $t = $array[$i] $t = ^ ERROR >Exit code: 1 Time: 0.419 That error is coming from Array.au3. Open Array.au3 in SciTE and see which function that is at line 666. And what version are you running? Neither the current Production or Beta versions of Array.au3 have valid code lines at 666, but yours evidently does. Some of the array UDFs have been updated to work with 2D arrays, so maybe you just have an out-of-date UDF. Edited September 5, 2009 by PsaltyDS Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law
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