Jump to content
Sign in to follow this  
ElementCDN

Help with using Arrays

Recommended Posts

ElementCDN

Hello,

I need to define an array populate it with strings. Then use the contents or the array to populate a text box.

I am not sure how to define and populate the array.

Cheers,

Share this post


Link to post
Share on other sites
midiaxe

Try this code:

Dim $aStrings[4]
Dim $i

$aStrings[0] = "This"
$aStrings[1] = "is an "
$aStrings[2] = "array of"
$aStrings[3] = "strings"

For $i = 0 to UBound($aStrings) - 1
    MsgBox(0, "Array of Strings", $aStrings[$i], 4)
Next

Share this post


Link to post
Share on other sites
Guest Guest_ElementCDN

Perfect! Thanks very much for your post.

I have the script working correctly now! :D

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.