rony2006 Posted March 24, 2016 Share Posted March 24, 2016 Hello, I have a 2d array and I want to show it in a msgbox. How can I do it? I already displayed it with _ArrayDisplay and in a listview gui but I want something more simple for it like a Msgbox. Thank you! Link to comment Share on other sites More sharing options...
InunoTaishou Posted March 24, 2016 Share Posted March 24, 2016 #include <Array.au3> Global $aData[][] = [["Row 0", "Column 0"], ["Apples", "Fuji"], ["Color", "Blue"], ["Country", "America"]] MsgBox("", "Array", _ArrayToString($aData, @TAB)) #include <Array.au3> Global $aData[10][10] For $iRow = 0 to 9 For $iColumn = 0 to 9 $aData[$iRow][$iColumn] = Random(0, 9, 1) Next Next MsgBox("", "Array", _ArrayToString($aData, " ")) Link to comment Share on other sites More sharing options...
rony2006 Posted March 24, 2016 Author Share Posted March 24, 2016 Thanks Link to comment Share on other sites More sharing options...
AutoBert Posted March 24, 2016 Share Posted March 24, 2016 _ArrayDisplay should be your first choice. _ArrayToString is also possible. 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