version 6.0
WR O Find (area; criteria{; where{; method}}) Integer
| Parameter | Type | Description | |
| area | Longint | 4D Write area | |
| criteria | Text | String for which to search | |
| where | Integer | 0=Partial word | |
| 1=Whole word | |||
| method | Integer | 0=Not case sensitive | |
| 1=Case sensitive | |||
| Function result | Integer | 0 if criteria is not found, | |
| 1 if criteria is found |
Note 6.5: This command was only maintained for compatibility purposes. We recommend using the WR Find command.
Description
The command WR O Find searches for criteria in area, and if found, selects it. If criteria is not found, WR O Find returns 0. If criteria is found, WR O Find returns 1. WR O Find always begins searching from the position of the last character in the selected text. Because WR O Find selects criteria, its position can be obtained from the WR GET SELECTION command.
The optional where parameter determines whether criteria can match part of a word. If where equals 0, WR O Find selects criteria even if criteria is part of another word. If where equals 1, WR O Find will select criteria only if criteria is found as a whole word, criteria is surrounded by separator characters such as spaces or punctuation marks.
The optional method parameter determines whether the search will be case sensitive. If method equals 0, WR O Find selects criteria regardless of case. If method equals 1, WR O Find will select criteria only if the cases match.
See Also