BlueScreen Posted February 22, 2004 Share 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 Link to comment Share on other sites More sharing options...
redndahead Posted February 22, 2004 Share 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 Link to comment Share on other sites More sharing options...
BlueScreen Posted February 22, 2004 Author Share Posted February 22, 2004 10x redndahead. It's kinda easy... Link to comment Share on other sites More sharing options...
GrahamS Posted February 22, 2004 Share Posted February 22, 2004 See also Displaying The Entire Content Of An Array... GrahamS Link to comment Share on other sites More sharing options...
BlueScreen Posted February 22, 2004 Author Share Posted February 22, 2004 10x GrahamS. It looks like the same question indeed. Link to comment Share on other sites More sharing options...
CyberSlug Posted February 22, 2004 Share 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! 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