May 1995
Beginner
508 pages
16h 14m
English
RTrim Function
RTrim(stringexp)stringexp
Use: Required
Data Subtype: String
A valid string expression.
A Variant of subtype String.
Removes any trailing spaces from stringexp.
If stringexp contains a
Null, RTrim returns
Null.
Unless you need to keep leading spaces, you should use the
Trim function, which is the equivalent of
RTrim(LTrim(
string
)),
thereby clearing both leading and trailing spaces in a single
function call.
Because it does not support strong typing, VBScript does not support
the VBA RTrim$ function, which returns a
strongly typed string rather than a string variant.
| LTrim Function, Trim Function |
Read now
Unlock full access