String Intrinsic Functions - Trim Method

Trim characters from either end of the string

Member of String Intrinsic Functions (PRIM_LIBI.ICommonStringIntrinsics)


NameTypeData TypeDescription
Result*Result (Optional)StringResulting string
OfText*Input (Optional)StringCharacters to be trimmed


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


In this example, if #String contained "  ABCDE   ", the result would be "ABCDE"
#Com_owner.Caption := #String.Trim

See also

All Component Classes

Technical Reference

Febuary 18 V14SP2