Purpose |
Return a
|
Syntax |
A$ = JOIN$(array(), {delim$ | BINARY}) |
Remarks |
JOIN$ requires a delimiter string delim$ which may be any length. If the delimiter expression is a null (zero-length) string, no separators are inserted between the string sections. If the delimiter expression is the 3-byte value of "," (which may be expressed in your source code as the string literal ""","""), a leading and trailing double-quote is added to each string section. This ensures that the returned string contains standard, comma-delimited quoted fields that can be easily parsed. The array specified by array() may be any data type. |
BINARY |
If the array consists of fixed size elements (
The JOIN$ function is the natural complement to the PARSE statement. |
See also |
|
Example |
FUNCTION PBMAIN DIM a$(2), s1$, s2$ a$(0) = "Hello" a$(1) = "Power" a$(2) = "BASIC" s1$ = JOIN$(a$(),""",""") s2$ = JOIN$(a$(),$SPC) END FUNCTION |
Result |
s1$ contains: "Hello","Power","BASIC" s2$ contains: Hello Power BASIC |