Trim

Remove leading and trailing spaces from a string.

Syntax
      Trim(string)

Key
   string    A text string or string expression.

Examples

Dim strDemo
strDemo = Trim("   The world is everlasting  ")
Returns "The world is everlasting"

“The hands of every clock are shears, trimming us away scrap by scrap, and every time piece with a digital readout blinks us towards implosion” ~ Dean Koontz

Related VBScript commands

LTrim - Remove leading spaces from a string.
RTrim Remove trailing spaces from a string.


 
Copyright © 1999-2024 SS64.com
Some rights reserved