LTrim

Trim leading whitespace from a string

Method Signature

LTrim(string=[string])

Arguments

Argument
Type
Required
Description
Default

string

string

true

The string to trim

Examples

Left Trim

Run Example

">" & lTrim( "    BLDocs    " ) & "<";

Result: >BLDocs <

Additional Examples

Run Example

// 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 ) & "-" );

Last updated

Was this helpful?