Jump to content
Renderer

Strings from array

Recommended Posts

Renderer

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.

Share this post


Link to post
Share on other sites
gil900
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 by gil900

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

×