LTrim()

Removes leading spaces from a string.

LTrim( string=string );

Returns: String

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