Sign in to follow this  
Followers 0
BlueScreen

Displaying The Content Of An Array

6 posts in this topic

#1 ·  Posted (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 by BlueScreen

Share this post


Link to post
Share on other sites



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. :whistle:

red

Share this post


Link to post
Share on other sites

10x redndahead.

It's kinda easy... :whistle:

Share this post


Link to post
Share on other sites

10x GrahamS. It looks like the same question indeed.

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0