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
">" & lTrim( " BLDocs " ) & "<";
Result: >BLDocs <
Additional 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 ) & "-" );
Related
Last updated
Was this helpful?