Join

From NSB App Studio
Revision as of 17:16, 8 July 2012 by Brendon (talk | contribs) (Created page with "JOIN(''stringarray''[, ''delimiter'']) '''Description''' JOIN returns a string that is created by concatenating a list of strings with an optional delimit character. The req...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

JOIN(stringarray[, delimiter])

Description

JOIN returns a string that is created by concatenating a list of strings with an optional delimit character. The required argument, stringarray, is a one-dimensional array of strings. The optional argument, delimiter, is a string expression whose first character is used to separate the strings joined from stringarray; if no string is provided a space character (" ") is used by default. To concantenate with no delimiters, use an empty space ("") as the delimiter.

Example

REM JOIN Example
'JOIN concatenates strings
DIM Words, Letters
Words = ARRAY("Hello", "World")
Letters = ARRAY("D", "a", "l", "l", "a","s")
PRINT JOIN(Words) & "!"
PRINT JOIN(Letters, "_")

Output

Hello World!
Dallas

Related Items

SPLIT