Unicode Intrinsic Functions - RightMost Method

Get the right most characters from the string

Member of Unicode Intrinsic Functions (PRIM_LIBI.IUnicodeIntrinsics)

Parameters

Name Type Data Type Description
Result *Result (Optional) Unicode String Resulting string
Characters *Input (Optional) Integer Number of characters to return
Pad *Input (Optional) Unicode String Pad character used to replace blanks in the result

Details

RightMost returns the 'n' rightmost characters from the string.

Example

In this example, if #String contained "ABCDE" the result would be "CDE".
#Com_owner.Caption := #String.RightMost(3)
In this example, if #String contained "ABCDE" the result would be "*****ABCDE".
#Com_owner.Caption := #String.RightMost(10 ?*?)

See also

All Component Classes

Technical Reference

LANSA Version 15, April 2020