String Intrinsic Functions - RemoveCharacters Method

Remove all occurrences of the specified characters from the source

Member of String Intrinsic Functions (PRIM_LIBI.ICommonStringIntrinsics)

Parameters

Name Type Data Type Description
Result *Result (Optional) String Result of after all characters have been removed
Object *Input String Characters to be removed

Details

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.

Example

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