This class provides a generic Find button, uses the Find object, and locates a record based on specific criteria.
Category | Data Query |
---|---|
Default Catalog |
VisualВ FoxProВ Catalog\FoundationВ Classes\DataВ Query |
Class |
_findbutton |
Base Class |
Container |
Class Library |
_table.vcx |
Parent Class |
_container |
Sample |
...\Samples\Solution\Ffc\dataqry.scx |
Remarks
To use, drop the class on a project or form or, from the Component Gallery Item shortcut menu, select Add to Project or Add to Form. When you add the class to a form, Visual FoxPro opens a builder so you can specify the appropriate cFindString, lMatchCase, lSkipMemo, and lWraparound values. When you drop the class on a project, you can choose between adding the class or creating a subclass.
See Guidelines for Using Visual FoxPro Foundation Classes for more information on using foundation classes.
Properties, Events, Methods | Description |
---|---|
cAlias property |
Specifies the data source in which to search. Default: "" |
cFindString property |
Specifies the string for which to search. Default: "" |
LFindAgain |
Specifies whether the file is traversed to find successive instances of cFindString. Default: .F. |
lMatchCase property |
Specifies the case-sensitivity of the search. Default: .F. |
lSkipMemos property |
Specifies whether to ignore Memo fields in the search. Default: .F. |
lWrapAround property |
Specifies whether to continue searching from the beginning if the end of file (EOF) is reached. Default: .F. |
DoFind method |
Performs a search.
Syntax:
Return: none Arguments: none |
SkipField method |
Removes the field, tcSkipField, from the search.
Syntax:
Return: none Arguments: tcSkipField specifies the field to ignore during the search. |