string.ltrim()

Removes leading spaces from a string.

string.ltrim( )

Returns: String

This function does not take any arguments.

Examples

// create variable with a string of text that has leading and trailing spaces
	str = " I Love Lucee!  ";
	// output variable
	writeDump("-" & str & "-");
	// output variable without leading spaces
	writeDump("-" & str.LTrim() & "-");

See also