String.TrimRight

string String.TrimRight ( 

string SourceString,

string CharactersToTrim = nil )

Example 1

trimmed = String.TrimRight("14345", "54");

Removes the characters in the string "54" from the source string "14345" and stores the resulting string "143" in the variable "trimmed."

Example 2

trimmed_space = String.TrimRight("Bob     ", nil);

Removes the trailing spaces from the source string and returns the string "Bob" in the variable "trimmed_space."

See also:  Related Actions