Trim

The Trim function returns a copy of a string with no leading or trailing spaces.

Syntax

variable = Trim ( TrimString )

Remarks

The TrimString parameter is the string that should be stripped of leading and trailing spaces.

To trim leading spaces only, use LTrim. To trim trailing spaces only, use RTrim.