Medic873 Posted September 5, 2010 Share Posted September 5, 2010 I know there is a _ArrayToString but im having trouble working it I want to make $aSplit[69] into a string called $number1 Link to comment Share on other sites More sharing options...
darkjohn20 Posted September 5, 2010 Share Posted September 5, 2010 (edited) #Include <Array.au3> Dim $aSplit[2] = ["One","Two"] $number1 = _ArrayToString($aSplit)Would make $number1 contain "One|Two" Edited September 5, 2010 by darkjohn20 Link to comment Share on other sites More sharing options...
fireryblaze Posted September 5, 2010 Share Posted September 5, 2010 #include<Array.au3> Dim $aSplit[69] For $i=0 to 68 step 1 $aSplit[$i] = $i Next $Number1 = _ArrayToString($aSplit, "|") MsgBox(0, "", $Number1) Try this it should demonstrate how to get it to work. ruskiem 1 Link to comment Share on other sites More sharing options...
darkjohn20 Posted September 5, 2010 Share Posted September 5, 2010 (edited) #include<Array.au3> Dim $aSplit[69] For $i=0 to 68 step 1 $aSplit[$i] = $i Next $Number1 = _ArrayToString($aSplit, "|") MsgBox(0, "", $Number1) Try this it should demonstrate how to get it to work. _ArrayToString's second parameter defaults to "|" so it's not really necessary. Same with "step 1" Edited September 5, 2010 by darkjohn20 Link to comment Share on other sites More sharing options...
fireryblaze Posted September 5, 2010 Share Posted September 5, 2010 _ArrayToString's second parameter defaults to "|" so it's not really necessary.Same with "step 1"Yea I know. I just like to specify those little things, Seems like it makes it easier to work with in the larger projects. Link to comment Share on other sites More sharing options...
Juvigy Posted September 6, 2010 Share Posted September 6, 2010 You can open _ArrayToString function and modify it to suit your needs. Link to comment Share on other sites More sharing options...
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