Jump to content

Recommended Posts

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.

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 Guest

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...