Renderer

Strings from array

3 posts in this topic

#1 ·  Posted

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



#2 ·  Posted (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 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