RTrim
Function RTrim( string )
Returns a copy of string with all trailing whitespace removed.
Syntax a = RTrim( "Hello There " )
Remarks
RTrim returns a copy of string with all trailing whitespace removed.
See Also:
Example Script
' right trim each line as it is displayed
STRING ln
ln = RTRIM("This ") ' spaces after This will be removed
PRINT ln
ln = ln + RTRIM(" is a ") ' spaces after is a will be removed
PRINT ln
ln = ln + RTRIM(" test of RTRIM. . . . .") ' no spaces will be removed
PRINT ln
Script Output
This
This is a
This is a test of RTRIM. . . . .