Links
EControl Syntax Editor SDK
TTextFinder.Flags Property

Specifies search & replace options.

property Flags: TSearchOptions;

Specify settings for the search direction, search scope, case-sensitivity, "whole word", and regular expression attributes of the search and replace operations.

Option 
Description 
ftCaseSensitive 
Differentiates uppercase from lowercase when performing a search. 
ftWholeWordOnly 
Searches for words only. (With this option off, the search string might be found within longer words.) 
ftBackward 
From the current cursor position to the beginning of the file, else from the current cursor position to the end of the file. 
ftSelectedText 
Only the selected text, in the direction specified by the Direction setting. To select a block of text, use the mouse or block commands. 
ftEntireScope 
Either the entire block of selected text or the entire file (no matter where the cursor is in the file), depending upon the ftSelectedText option, else at the cursor's current position and proceeds either forward to the end of the scope, or backward to the beginning of the scope depending on the ftBackward setting. 
ftRegularExpr 
Recognizes specific regular expressions in the search string. 
ftPromtOnReplace 
Prompts you before replacing each occurrence of the search string. When Prompt on replace is off, the Code editor automatically replaces the search string. 
ftReplaceTemplate 
Treats ReplaceText as a template. After successful search template is substituted (invoking TecRegExpr.Substitute) than resulting string is used to replace found substring in a Text. This option is only available with ftRegularExpr option. 
Copyright (c) 2004-2011. All rights reserved.
What do you think about this topic? Send feedback!