trim$
Syntax
new_string = TRIM$(text, code)
Arguments
text, new_string: text
code: integer
Meaning
trim$ can be used to strip leading and trailing spaces from a character string. The codes for this are:
Code |
Meaning |
1 |
Leading blanks are removed |
2 |
Trailing blanks are removed |
3 |
Leading and trailing blanks are removed |
Example
new_string = trim$(' ABC ', 3)
Result
new_string is 'ABC'.