Bert Posted December 22, 2006 Posted December 22, 2006 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? The Vollatran project My blog: http://www.vollysinterestingshit.com/
Valuater Posted December 22, 2006 Posted December 22, 2006 ????? 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)
xcal Posted December 22, 2006 Posted December 22, 2006 Dim $c1[4] = ['one', 'two', 'three', 'four'] ;whatever your array is Local $str For $i = 1 To 4 $str &= $i & '=' & $c1[$i-1] & @LF Next MsgBox(0, '', $str) How To Ask Questions The Smart Way
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now