RTRIM(string)
Description
RTRIM returns string with all trailing spaces removed. The required parameter, string, is any valid string expression.
Example
REM RTRIM Example
'RTRIM trims all trailing spaces
DIM Spacey
Spacey = "K-"
PRINT "(" & Spacey & ")"
PRINT "(" & RTRIM(Spacey) & ")"
Output
(K-)
(K)
Related Items
LTRIM, TRIM