String Intrinsic Functions - Replace Method

Replace the specified string

Member of String Intrinsic Functions (PRIM_LIBI.ICommonStringIntrinsics)

Parameters

NameTypeData TypeDescription
Result*Result (Optional)StringResulting value after the object has been replaced
Object*InputStringValue to be replaced
Replacement*InputStringValue to replace the specified Object value

Details

Replace replaces the first instance of the value specified in the Object parameter with the value specified in the Replacement parameter.

Example

In this example, if #String contained "ABC 123" the result would be "ABC_123""
#Com_owner.Caption := #String.Replace( " " "_" )

See also

All Component Classes

Technical Reference

Febuary 18 V14SP2