Sign in to follow this  
Followers 0
ElementCDN

Help with using Arrays

3 posts in this topic

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



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

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  
Followers 0