BlueScreen Posted February 22, 2004 Posted February 22, 2004 (edited) Guys, How to display the content of an array? Dim $myArray [10] For $i=0 to 4 $var=InputBox ("myVar","Enter your number") $myArray [$i] = $var Next ;How to display the content of $myArray in a message box the easiest way? Edited February 22, 2004 by BlueScreen
redndahead Posted February 22, 2004 Posted February 22, 2004 For $i = 1 to ubound($MyArray) $DisplayText = $DisplayText & @CRLF & $myarray[$i] & @CRLF Next MsgBox(0,"Displayed Array","This is what's in myarray: " & $DisplayText) This should work. red
BlueScreen Posted February 22, 2004 Author Posted February 22, 2004 10x redndahead. It's kinda easy...
GrahamS Posted February 22, 2004 Posted February 22, 2004 See also Displaying The Entire Content Of An Array... GrahamS
BlueScreen Posted February 22, 2004 Author Posted February 22, 2004 10x GrahamS. It looks like the same question indeed.
CyberSlug Posted February 22, 2004 Posted February 22, 2004 I think the loop should be For $i = 0 to ubound($MyArray)-1 Use Mozilla | Take a look at My Disorganized AutoIt stuff | Very very old: AutoBuilder 11 Jan 2005 prototype I need to update my sig!
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