Rtrim() or Trim()


Remove trailing space characters from a character string.

Syntax

RTrim(<cString>) --> cTrimString

Arguments

<cString> --> is the character string to copy without trailing spaces.

Returns

RTrim() returns a copy of <cString> with the trailing spaces removed. If <cString> is a null/empty string ("") or all spaces, RTrim() returns a null string ("").

Description

RTrim() is a character function that removes spaces from the ends of character strings. RTrim() is related to LTrim() which removes leading spaces, and Alltrim() which removes both leading and trailing spaces. The inverse of Alltrim(), LTrim(), and RTrim() are the PADC(), PADR(), and PADL() functions which center, right-justify, or left-justify character strings by padding them with fill characters. (Note: using these functions to justify text when displaying proportional fonts won't work. You must use a non-proportional font.)

Examples

RTrim('John Black ')

* Result = 'John Black'

____________________________

Related Topics:

Business Function List



CAPITAL VISUAL BUILDER