TTMSFNCDataGrid.Replace Method
Replaces all occurrences of a value with a new value in all cells; returns the number of replacements made.
API unit family: TMSFNCDataGrid
Declaring type: TTMSFNCDataGrid
Inherited from: TTMSFNCCustomDataGrid
Overloads
Overload 1
Replaces all occurrences of a value with a new value in all cells; returns the number of replacements made.
function Replace(AOriginalValue, ANewValue: string): Integer; overload;
Parameters
| Name | Description |
|---|---|
AOriginalValue |
Value to find. |
ANewValue |
Replacement value. |
Returns
Number of replacements performed.
Overload 2
Replaces occurrences of a value using the specified find parameters; returns the number of replacements made.
function Replace(AOriginalValue, ANewValue: string; AParameters: TTMSFNCDataGridDataFindParameters): Integer; overload;
Parameters
| Name | Description |
|---|---|
AOriginalValue |
Value to find. |
ANewValue |
Replacement value. |
AParameters |
Search options controlling case sensitivity, scope, and direction. |
Returns
Number of replacements performed.