Searches the text in a Text Control for a given string.
TXTextControl.Find FindWhat[, Start[, Options]]
Parameter | Description | |||||||||||||||||||
FindWhat |
Specifies the string to search for. |
|||||||||||||||||||
Start |
Optional. An integer character index that determines where to begin the search. The first character of text in the control has an index of 0. When this parameter is omitted or set to -1, the search begins at the current input position. |
|||||||||||||||||||
Options |
Optional. Is the sum of one or more constants used to specify optional features, as described in the following list:
|
If the text searched for is found, the Find method highlights the specified text and returns the index (zero-based) of the first character highlighted. If the specified text is not found, the Find method returns -1.
FindWhat: | String |
Start: | Long |
Options: | Long |
Return value: | Long |
<< TXTextControl.FieldTypeData Property | >> TXTextControl.FindReplace Method