VBScript Trim Function
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 »
Complete VBScript Reference Manual