JOIN$ function

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


 Syntax:

 RetStr$ = JOIN$(NumberofStrings%, _
                         String1$, _
                         String2$, _
                         String3$,
                     ... StringN$)

 Parameters:

  • 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
  • NumberofStrings% Number of strings in parameter list.
  • String1$ etc. Strings to be concatenated. NOTE: JOIN will not concatenate strings containing embedded ASCII 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