RTrim
Trim trailing whitespace from a string
Method Signature
RTrim(string=[string])
Arguments
Argument
Type
Required
Description
Default
string
string
true
The string to trim
Examples
Right Trim
">" & rTrim( " 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 trailing spaces
writeDump( "-" & RTrim( foo ) & "-" );
Related
Last updated
Was this helpful?