Name
Texteditor.Search -- search for text
Synopsis
r = mui.DoMethod(id, "Search", s$, flags$)
Function
Search the text for the given string. The string must not exceed 120 characters.

Flags can be a combination of:

FromTop
Normally the search starts at the cursor position - this flag will make it start at the beginning of the text.

CaseSensitive
If you want the search to be case sensitive, then set this flag.

Backwards
With this flag TextEditor will perform a backward search from cursor position.

If you specify multiple of the flags above, you have to separate them using a semicolon, e.g. "FromTop; CaseSensitive".

If the string is found, it will be automatically marked. Thus, in case you want to replace it, simply clear the marked string and insert the new one.

Inputs
id
id of the text editor object
s$
string to search for
flags$
one or more of the flags listed above
Results
r
True if the string was found, otherwise False

Show TOC