Original Author Paul Laughton, 2011
Page 6
De Re BASIC!
CHR$(<nexp>, ...) .................................................................................................................................... 64
LEFT$(<sexp>, <count_nexp>) ................................................................................................................ 64
MID$(<sexp>, <start_nexp>{, <count_nexp>}) ....................................................................................... 64
RIGHT$(<sexp>, <count_nexp>).............................................................................................................. 65
REPLACE$(<sexp>, <argument_sexp>, <replace_sexp>) ........................................................................ 65
TRIM$(<sexp>{, <test_sexp>}) ................................................................................................................ 65
LTRIM$(<sexp>{, <test_sexp>}) ............................................................................................................... 65
RTRIM$(<sexp>{, <test_sexp>}) .............................................................................................................. 65
WORD$(<source_sexp>, <n_nexp> {, <test_sexp>}) .............................................................................. 66
ENCODE$(<type_sexp>, {<qualifier_sexp>}, <source_sexp>) ................................................................. 66
DECODE$(<type_sexp>, {<qualifier_sexp>}, <source_sexp>) ................................................................. 67
ENCODE$(<charset_sexp>, <source_sexp>) ........................................................................................... 68
DECODE$(<charset_sexp>, <buffer_sexp>) ............................................................................................ 68
STR$(<nexp>) .......................................................................................................................................... 69
LOWER$(<sexp>) ..................................................................................................................................... 69
UPPER$(<sexp>) ...................................................................................................................................... 69
VERSION$() .............................................................................................................................................. 69
INT$(<nexp>) ........................................................................................................................................... 69
HEX$(<nexp>) .......................................................................................................................................... 69
OCT$(<nexp>) ......................................................................................................................................... 69
BIN$(<nexp>) .......................................................................................................................................... 69
USING$({<locale_sexp>} , <format_sexp> { , <exp>}...) .......................................................................... 70
Locale expression ................................................................................................................................ 70
Format expression .............................................................................................................................. 70
Integer values ...................................................................................................................................... 74
FORMAT_USING$(<locale_sexp>, <format_sexp> { , <exp>}...) ............................................................. 74
FORMAT$(<pattern_sexp>, <nexp>)....................................................................................................... 74
Notes ................................................................................................................................................... 75
Examples ............................................................................................................................................. 75
User-Defined Functions .............................................................................................................................. 75
Variable Scope ........................................................................................................................................ 76
Data Structures in User-Defined Functions ............................................................................................ 76