Sign in to follow this  
Followers 0
Bert

simple array question

3 posts in this topic

I'm getting up to speed on arrays thanks to Uten, but I do have a simple question. I have a string:

"1=" &$c1[0]&@LF _
&"2=" &$c1[1]&@LF _
&"3=" &$c1[2]&@LF _
&"4=" &$c1[3]

You can see that this has repeating items. What would be the best way to put this into array so that I can eliminate the repeating stuff?

Share this post


Link to post
Share on other sites



?????

Maybe

Dim $c1[4]

$c1[0] = 4
$c1[1] = 1
$c1[2] = 2
$c1[3] = 3

MsgBox(0x0, "Test","1=" & $c1[0] &@LF &  _
"2=" &$c1[1]&@LF & _
"3=" &$c1[2]&@LF & _
"4=" &$c1[3])

8)


NEWHeader1.png

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