10.6.39 LeftMost
LeftMost returns the first n characters of a string. If the string does not have enough characters, the remaining space can be padded.
Input Parameters
Characters – Number of characters to be returned
Pad - Character to be used to fill remaining space
Example
In this example, if #String contained ABCDEFGHIJKLMNOPQRSTUVWXYZ, the result would be ABCDEFGHIJKLM:
#Com_owner.Caption := #String.LeftMost( 13 )
In this example, if #String contained ABCDEFGHI the result would be ABCDEFGHI****:
#Com_owner.Caption := #String.LeftMost( 13 '*' )
Ý 10.6 Alphanumeric/String Intrinsic Functions