Renderer Posted May 11, 2017 Posted May 11, 2017 Hello guys ! I have one little problem. local $strings[3] = ["Hello","World"] how to split the strings i've got into the array,and then return the values into only one string? Thanks in advance.
Guest Posted May 11, 2017 Posted May 11, 2017 (edited) local $strings[3] = ["Hello","World"] $iSize = UBound($strings)-1 $sText = '' For $a = 0 To $iSize $sText &= $strings[$a] If $a < $iSize Then $sText &= ' ' Next ConsoleWrite($sText &' (L: '&@ScriptLineNumber&')'&@CRLF) Edited May 11, 2017 by Guest
InunoTaishou Posted May 11, 2017 Posted May 11, 2017 #include <Array.au3> Global $aArray[] = ["Hello","World"] ConsoleWrite(_ArrayToString($aArray, " ") & @LF) Subz 1
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