You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Current »

String Intrinsic Functions - RightTrim Method
Trim characters from the right of the string
Member of String Intrinsic Functions (PRIM_LIBI.ICommonStringIntrinsics)

Parameters

Name

Type

Data Type

Description

Result

*Result (Optional)

String

Resulting string

OfText

*Input (Optional)

String

Characters to be trimmed

Details


RightTrim can be used to remove trailing blanks, or other characters, from a string.
The OfText parameter can contain more than one character.

Example


In this example, if #String contained "ABCDE ", the result would be "ABCDE".
#Com_owner.Caption := #String.RightTrim
In this example, if #String contained "AAA" the result would be "A". After the first AA has been removed from the string, only a single A remains that does not match the OfText parameter value.
#Com_owner.Caption := #String.RightTrim( AA )

See also

All Component Classes
Technical Reference

  • No labels