Trim commands not working?
Posted: Mon Jul 16, 2018 12:46 am
Hi all. I am trying to use the RTrim command to remove a character from the end of a string.
For me, this outputs "Hello!" -- nothing trimmed off. Trim and LTrim also seem not to be working for me. Am I doing something wrong? Using PureBasic 5.61 (licensed).
Thanks in advance.
Code: Select all
Text.s = "Hello!"
RTrim(Text, "!")
Debug Text
Thanks in advance.