RTRIM
Return a copy of a string without any trailing spaces.
WebVue support - Yes.
Syntax
StrVal = RTRIM(string);
Return type: STR.
Argument |
Meaning |
string |
The string whose trailing spaces are to be removed. Type STR. |
Example
SUB Main()
'Declare variables
DIM strResult as Str;
DIM strValue as Str;
strValue = "Hello, World!"; 'with trailing spaces
strResult = RTrim(strValue);
PRINT("RTrim(",strValue,") = ",strResult);
'Displays "RTrim(Hello, World!) = Hello, World!"
END SUB