Jump to content
Sign in to follow this  
BlackDawn187

MsgBox using an Array with an unknown size

Recommended Posts

BlackDawn187

Okay, So what I've been trying to accomplish is something like the following;

MsgBox(0, "Message", $Array[1] & @CRLF & $Array[2] & @CRLF & $Array[3])

Except, I don't know the size of the Array. So there could be 10 elements in the Array, But I still need the @CRLF afterwards. Specifically, I would like to define where the @CRLF is inserted as well. I've tried to make workarounds, By doing "_ArrayToString" and, Then using "_StringInsert($Array, @CRLF, $Increment)". But, For the life of me I can't come up with a solution right now.

Can anyone offer some help?

Share this post


Link to post
Share on other sites
Prime03

Okay, So what I've been trying to accomplish is something like the following;

MsgBox(0, "Message", $Array[1] & @CRLF & $Array[2] & @CRLF & $Array[3])

Except, I don't know the size of the Array. So there could be 10 elements in the Array, But I still need the @CRLF afterwards. Specifically, I would like to define where the @CRLF is inserted as well. I've tried to make workarounds, By doing "_ArrayToString" and, Then using "_StringInsert($Array, @CRLF, $Increment)". But, For the life of me I can't come up with a solution right now.

Can anyone offer some help?

 

Whats wrong with using _ArrayDisplay?

Share this post


Link to post
Share on other sites
BlackDawn187

I managed to get it figured out, Sorry for wasting your guys time. It was just a matter of throwing a For statement in my code in the proper spot.

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.