Trim Function

Syntax:

Trim[$](S$)

Group:

String

Description: 

Returns the string with S$'s leading and trailing spaces removed.

Parameters:

Parameter

Description

S$

Copy this string without the leading or trailing spaces. If this value is Null then Null is returned.

Example:

Sub Main
  Debug.Print ".";Trim$(" x ");"." '".x."
End
Sub

See Also:

LTrim$( ), RTrim$( )