Unicode Intrinsic Functions - RemoveAll Method

Remove all occurrences of the specified string from the source

Member of Unicode Intrinsic Functions (PRIM_LIBI.IUnicodeIntrinsics)

Parameters

NameTypeData TypeDescription
Result*Result (Optional)Unicode StringResulting value after all occurrences have been removed
Object*InputUnicode StringValue to be removed

Details

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

Example

In this example, if #String contained the value ?HABERDASHERY?, the result would be ?HABERERY?
#String := #String.RemoveAll( "DASH" )

See also

All Component Classes

Technical Reference

LANSA Version 15, April 2020