Medic873 0 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 Share this post Link to post Share on other sites
darkjohn20 1 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 Share this post Link to post Share on other sites
fireryblaze 1 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. 1 ruskiem reacted to this Share this post Link to post Share on other sites
darkjohn20 1 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 Share this post Link to post Share on other sites
fireryblaze 1 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. Share this post Link to post Share on other sites
Juvigy 49 Posted September 6, 2010 You can open _ArrayToString function and modify it to suit your needs. Share this post Link to post Share on other sites