JOIN$ function

Purpose:

JOIN$ returns a string concatenated from the strings in the parameter list.

Syntax:

RetStr = JOIN$(NumberofStrings AS INTEGER, _
                        String1 AS STRING, _
                        String2 AS STRING, _
                        String3 AS STRING,
                    ... StringN AS STRING)

Return Value:

  • Data type: STRING
    RetStr string containing a concatenation of the strings in the parameter list. The total length of of the concatenated string that JOIN$ returns is limited to 64kb.

Parameters:

  • Data type: INTEGER
    NumberofStrings Number of strings in parameter list.
  • Data type: STRING
    String1 etc. Strings to be concatenated.

Remarks:

👉 JOIN$ will not concatenate strings containing embedded ASCII code point 0.

Example:

DIM A$
DIM B$
DIM C$
DIM MyStr$

A$ = "a"
B$ = "b"
C$ = "c"

MyStr$ = UCASE$(JOIN$(3, A$, B$, C$))

PRINT MyStr$

Result:

ABC