ENCLOSE

SmallBASIC syntax groups: 


String function ENCLOSE


10
20  ENCLOSE (str[, pair])
30
Encloses a string.


See examples


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

? enclose("abc", "()")
' Result: (abc)

Comments

ENCLOSE defaults to double quotes if the [pair] option is not used.

test=10
myStr="myStr"
? enclose(test)
? enclose(myStr)
pause