Synopsis
result = EditFind(text, option)
Args
text is the text to find. If an empty string, then a repeat search is conducted with the same specifications as a previous find.
option is any of the following, each separated by a '|':
'CASE' | Match case. |
'WORD' | Match whole word. |
'SEL' | Limit search within the current selection. |
'WRAP' | Wrap around when reaching the head or end of the editor. |
'BACK' | Search backward from the current position, rather than forward. |
'WARN' | Show a message box if the text isn't found. |
If both args are omitted, the Find Dialog is presented.
Returns
If the text is found, then this returns the line number where the text is found, and the character upon that line where the text starts, separated by a space. If not found, this returns an empty string.
Notes
The text to search for may not span more than one line.