Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

VBScript Trim Function

VBScript Trim Function


VBScript reference manual Complete VBScript Reference Manual


The Trim function removes the spaces on both sides of a string.

**Tip:** See also the LTrim and RTrim functions.

Syntax

Trim(string)

Parameters Description
string Required. A string expression.

Example

Example

The example above produces the following output:

HelloJackand welcome.

Try it »


VBScript reference manual Complete VBScript Reference Manual