Champak Posted June 27, 2008 Share Posted June 27, 2008 Is it multidimentional? Link to comment Share on other sites More sharing options...
Developers Jos Posted June 27, 2008 Developers Share Posted June 27, 2008 nope. Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
Champak Posted June 27, 2008 Author Share Posted June 27, 2008 Thanks. Link to comment Share on other sites More sharing options...
monoceres Posted June 28, 2008 Share Posted June 28, 2008 Here's one that is: #include <array.au3> $list = WinList() _ArrayDisplay($list) $list = _ArrayReverse_2D($list) _ArrayDisplay($list) Func _ArrayReverse_2D($aArray) Local $iBound1 = UBound($aArray, 1) Local $iBound2 = UBound($aArray, 2) Local $aOut[$iBound1][$iBound2] For $i = 0 To $iBound1 - 1 For $j = 0 To $iBound2 - 1 $aOut[$i][$j] = $aArray[($iBound1 - 1) - $i][$j] Next Next Return $aOut EndFunc ;==>_ArrayReverse_2D Broken link? PM me and I'll send you the file! Link to comment Share on other sites More sharing options...
DickG Posted August 15, 2008 Share Posted August 15, 2008 Very cool! This works great! I was having trouble displaying a multi-dimensional array and did not realize that _ArrayDisplay() did not support a multl-D array. Thanks much! Here's one that is: #include <array.au3> $list = WinList() _ArrayDisplay($list) $list = _ArrayReverse_2D($list) _ArrayDisplay($list) Func _ArrayReverse_2D($aArray) Local $iBound1 = UBound($aArray, 1) Local $iBound2 = UBound($aArray, 2) Local $aOut[$iBound1][$iBound2] For $i = 0 To $iBound1 - 1 For $j = 0 To $iBound2 - 1 $aOut[$i][$j] = $aArray[($iBound1 - 1) - $i][$j] Next Next Return $aOut EndFunc ;==>_ArrayReverse_2D Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted August 15, 2008 Moderators Share Posted August 15, 2008 Very cool! This works great! I was having trouble displaying a multi-dimensional array and did not realize that _ArrayDisplay() did not support a multl-D array.Thanks much!_ArrayDisplay does support multi-dimensional arrays. What version of autoit are you using? Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. 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