LTrim, LTrim$, RTrim, RTrim$, Trim, Trim$ Function

See AlsolanLTrimSee              Example7PSH0X7>Low

Returns a copy of a string with leading (leftmost), trailing (rightmost), or both leading and trailing spaces removed.

Syntax

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

Remarks

LTrim[$] removes leading spaces from a string; RTrim[$] removes trailing spaces.  Trim[$] removes leading and trailing spaces.

LTrim, RTrim, and Trim each return a Variant8PHEAW3; LTrim$, RTrim$, and Trim$ each return a String.

The stringexpr argument can be any string expression1330R89.  However, only LTrim, RTrim, and Trim can accept a Variant of VarType7A68ZTZ 1 (Null1DDW7C0) as stringexpr, in which case, a Null is returned.