RTrim

Removes spaces from the end of a string.

RTrim( string )

Returns: String

Argument Description
string
string, required

A string or a variable that contains one

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

See also