Unicode Intrinsic Functions - RemoveCharacters Method

Remove all occurrences of the specified characters from the source

Member of Unicode Intrinsic Functions (PRIM_LIBI.IUnicodeIntrinsics)


NameTypeData TypeDescription
Result*Result (Optional)Unicode StringResult of after all characters have been removed
Object*InputUnicode StringCharacters to be removed


RemoveCharacters removes all occurrences of the characters supplied in the Object parameter.  This is similar to the RemoveAll intrinsic, except that RemoveCharacters searches the subject string for individual characters rather than instances of the entire search string.
RemoveCharacters is case sensitive.


In this example, if #String contained the value "ADACABA", the result would be "DCB"
#String := #String.RemoveCharacters("A")

See also

All Component Classes

Technical Reference

LANSA Version 15, April 2020