LTrim

Removes leading spaces from a string.

Returns: string

Usage

LTrim( string )

Arguments

Argument Description
string
(string, required)

A string or a variable that contains one

Examples

// create variable with a string of text that has leading and trailing spaces
  foo = " Hello World!  ";
  // output variable
  writeDump("-" & foo & "-");
  // output variable without leading spaces
  writeDump("-" & LTrim(foo) & "-");

See also