JOIN

SmallBASIC syntax groups: 


String command JOIN


10
20  JOIN words(), delimiters, string
30
Returns the words of the specified string into array ‘words’.


See examples


If there is insufficient information on this page and you wish learn more about JOIN, please send an email to smallbasic@gmail.com. You can help to improve information about JOIN by submitting an article using the comments link below. Note, an offline language reference text file is now avialable – see the Download section.

s="/etc/temp/filename.ext"
SPLIT s, "/.", v()
JOIN v(), "/", s
PRINT "[";s;"]"

displays:
[/etc/temp/filename/ext]