LTrim[$], RTrim[$], Trim[$] Function

Language Items List

Definition:

Returns a copy of a string with the leftmost, the rightmost, or both the left- and rightmost spaces removed.

Syntax:

[L | R]Trim[$](strexpr)


Syntax Description


strexpr Any string expression

Details:

LTrim removes leftmost, or leading, spaces from the supplied string expression. RTrim is the complement of LTrim and removes the rightmost, or trailing, spaces. Trim combines these two functions by allowing you to remove both leading and trailing spaces in the returned string.

See Also:

Mid, Mid$ Function