Description
Searches edit controls, including edit tables, for user-specified text.
Syntax
EditFind
Parameters
The EditFind function has the following parameters:
Parameter | Description | |||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Instruction | Specifies the desired search request. Constants are defined in the insert EditFind_Equates.
| |||||||||||||||||||||
CtrlEntID | The control to search. This parameter has the window.control format. | |||||||||||||||||||||
DftFind | (Optional) The string to search for. | |||||||||||||||||||||
Options | (Optional) The Boolean search options. Constants are defined in the insert EditFind_Equates.
|
Remarks
The EditFind function supplies developers with a pre-built utility for supplying the "Find", "Find Next", and "Find Previous" items which are typically found on an "Edit" or "Search" menu. Using QuickEvents, for the "Find" menu item, select "Execute a procedure", then select the EDITFIND procedure from the Entity drop down, then specify 1,'@SELF' as the parameters. For "Find Next" and "Find Previous", change the parameter "1" to "3" and "4" respectively.
Note: EditFind will only work properly with edit line and edit box controls that have the ES_NOHIDESEL style set (hex 0x100, decimal 256). This particular style can not be set using the STYLE property. If this style is not set, the text that is highlighted by EditFind will not appear until the Find dialog is closed.