Name Trim
Type Method
Summary Trims leading and trailing spaces from a string
Prototype BSTR Trim(BSTR Source);
Description This is supplied as a convenient way of removing leading and trailing spaces from a supplied string.
VBscript example
world.note "*" & world.trim ("  mystring  ") & "*"
Jscript example
world.Note("*" + world.Trim("  mystring  ") + "*");
PerlScript example
$world->Note("*" . $world->Trim("  mystring  ") . "*");
Returns The source string with any leading or trailing spaces removed.

See also ...