| 
Docs » Autodocs » texteditor.gadget » GM_TEXTEDITOR_Search 
         OM_TEXTEDITOR_Search
         DoGadgetMethod(obj, win, req, OM_TEXTEDITOR_Search, NULL, STRPTR string, ULONG flags);
         Searches the text for the given string. The string mustn't exceed 120characters.
 Flags can be:
 GF_TEXTEDITOR_Search_FromTop
 Normally the search starts at the cursor position - this flag will
 make it start at the beginning of the text.
 GF_TEXTEDITOR_Search_CaseSensitive
 If you want the search to be case sensitive, then set this flag.
 
         TRUE if the string was found, otherwise FALSE.
         If the string was found then it's left marked. So in case you want toreplace it, simply clear the marked string and insert the new one.
 
 |