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

Run Example

">" & rTrim( "    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 trailing spaces
writeDump( "-" & RTrim( foo ) & "-" );

Last updated

Was this helpful?