$ttrim

Trims trailing blanks from a character string.

Syntax

$ttrim(string)

Parameters

string

a character string, or any expression that evaluates to a character string

Return Value

Character string.

Comments

Use $ttrim to remove trailing spaces from a character string.

For output purposes, the implicit length of the result returned by $ttrim is the same as the length of string.

Example

$ttrim (LastName)

Evaluates to "Smith" if LastName is stored as "Smith ".

detail line $concat($ttrim(LastName),", ",FirstName)

Displays a last name first in a report.

 

Related Topics