Trim Function

Syntax:

Trim[$](S$)

Group:

String

Description:

 

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

 

Parameter

Description

S$

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

 

See Also:

LTrim$( ), RTrim$( ).

Example:


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