ENCLOSE
ENCLOSE (str[, pair])
Encloses a string using the two characters in string
pair
. ENCLOSE defaults to double quotes if
pair
is not used.
Example 1: Enclose brackets
print enclose("abc", "()") ' output: (abc)
Example 2: Enclose quotes using default setting
10
test="myStr"
myStr=print enclose(test) ' output: "10"
print enclose(myStr) ' output: "myStr"
Example 2: Enclose letters
10
test = print enclose(test, "aB") ' output: a10B
Code samples using ENCLOSE
String
ASC
BCS
BIN
CBS
CHOP
CHR
DISCLOSE
ENCLOSE
FORMAT
HEX
INSTR
JOIN
LCASE
LEFT
LEFTOF
LEFTOFLAST
LOWER
LTRIM
MID
OCT
REPLACE
RIGHT
RIGHTOF
RIGHTOFLAST
RINSTR
RTRIM
SINPUT
SPACE
SPC
SPLIT
SPRINT
SQUEEZE
STR
STRING
TRANSLATE
TRIM
UCASE
UPPER
VAL
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 a pull request,
click View Source for details. Note, an offline language reference text file is also available - see the Download section.