Skip to main content
Table of Contents

TTMSFNCMemo.ReplacePrevious Method

Replaces the previous match using the supplied search options.

API unit family: TMSFNCMemo Declaring type: TTMSFNCMemo Inherited from: TTMSFNCCustomMemo

Overloads

Overload 1

Replaces the previous match using the supplied search options.

FMX.TMSFNCMemo.hppPascalC++
procedure ReplacePrevious(ASearchString, AReplaceString: string; AOptions: TTMSFNCMemoFindOptions); overload;
void __fastcall ReplacePrevious(System::UnicodeString ASearchString, System::UnicodeString AReplaceString, const TTMSFNCMemoFindOptions &AOptions)/* overload */;

Parameters

Name Description
ASearchString The text to search for.
AReplaceString The replacement text.
AOptions The search or replace options to apply.

Overload 2

Replaces the previous match using default options.

FMX.TMSFNCMemo.hppPascalC++
procedure ReplacePrevious(ASearchString, AReplaceString: string); overload;
void __fastcall ReplacePrevious(System::UnicodeString ASearchString, System::UnicodeString AReplaceString)/* overload */;

Parameters

Name Description
ASearchString The text to search for.
AReplaceString The replacement text.