Table of Contents

TTMSFNCDataGridData.Replace Method

Replaces all occurrences of AOriginalValue with ANewValue; returns the number of replacements made.

API unit family: TMSFNCDataGridData Declaring type: TTMSFNCDataGridData

Overloads

Overload 1

Replaces all occurrences of AOriginalValue with ANewValue; returns the number of replacements made.

function Replace(AOriginalValue, ANewValue: string): Integer; overload;

Parameters

Name Description
AOriginalValue Value used or returned by the operation.
ANewValue Value used or returned by the operation.

Returns

The resulting zero-based index or count.

Overload 2

Replaces occurrences of AOriginalValue with ANewValue using explicit find parameters; returns the number of replacements made.

function Replace(AOriginalValue, ANewValue: string; AParameters: TTMSFNCDataGridDataFindParameters): Integer; overload;

Parameters

Name Description
AOriginalValue Value used or returned by the operation.
ANewValue Value used or returned by the operation.
AParameters Argument used by the operation.

Returns

The resulting zero-based index or count.