Join: Difference between revisions

From NSB App Studio
Jump to navigation Jump to search
(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...")
 
No edit summary
Line 1: Line 1:
JOIN(''stringarray''[, ''delimiter''])
Join(''stringarray''[, ''delimiter''])


'''Description'''
== 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.
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'''
== Example ==


<pre>
<pre>
REM JOIN Example
Rem Join Example
'JOIN concatenates strings
'Join concatenates strings
DIM Words, Letters
Dim Words, Letters
Words = ARRAY("Hello", "World")
Words = Array("Hello", "World")
Letters = ARRAY("D", "a", "l", "l", "a","s")
Letters = Array("D", "a", "l", "l", "a","s")
PRINT JOIN(Words) & "!"
Print Join(Words) & "!"
PRINT JOIN(Letters, "_")
PRINT Join(Letters, "_")
</pre>
</pre>


'''Output'''
== Output ==


<pre>
<pre>
Line 24: Line 24:
</pre>
</pre>


'''Related Items'''
== Related Items ==


[[split|SPLIT]]
[[split|SPLIT]]
[[Category:Language Reference]]

Revision as of 01:50, 17 August 2012

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