String Intrinsic Functions - RightMost Method

Get the right most characters from the string

Member of String Intrinsic Functions (PRIM_LIBI.ICommonStringIntrinsics)

Parameters

NameTypeData TypeDescription
Result*Result (Optional)StringResulting string
Characters*Input (Optional)IntegerNumber of characters to return
Pad*Input (Optional)StringPad 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

Febuary 18 V14SP2