EmEditor Home - EmEditor Help - EmEditor Macro Reference - Selection Object

Find Method

Searches for the specified string.

[JavaScript]

nFound = document.selection.Find( strFind, nFlags );

[VBScript]

nFound = document.selection.Find( strFind, nFlags )

Parameters

strFind

Specifies a string to search for.

nFlags

Specifies a combination of the following values:

eeFindNext Searches downward from the cursor position.
eeFindPrevious Searches upward from the cursor position.
eeFindReplaceCase Matches cases.
eeFindReplaceEscSeq Uses escape sequences. Cannot be combined with eeFindReplaceRegExp.
eeFindReplaceQuiet Does not display a message on the status bar if no string is found.
eeFindReplaceOnlyWord Matches only whole words.
eeFindAround Moves to the start of the document when reaches the end of the document.
eeFindReplaceRegExp Uses a regular expression for the searched string. Cannot be combined with eeFindReplaceEscSeq.
eeFindReplaceOpenDoc Searches all open documents in the same frame window.

Return Values

Returns 1 if the searched string is found, or 0 if not found.

Version

Supported on EmEditor Professional Version 4.00 or later.

Send feedback on this topic to Emurasoft

Copyright © 2003-2008 by Emurasoft, Inc.