10 6 48 RemoveCharacters

LANSA Technical

10.6.48 RemoveCharacters

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.

Input Parameters

Object – String to be removed from the subject

Example

In this example, if #String contained the value "ADACABA", the result would be "DCB"

#String := #String.RemoveCharacters("A")
 

Ý 10.6 Alphanumeric/String Intrinsic Functions