Trim

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

Syntax

variable = Trim ( source )

Remarks

The source 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.