Condividi tramite


Find Button Foundation Class

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

This class provides a generic Find button, uses the Find object, and locates a record based on specific criteria.

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: DoFind( )
Return: none
Arguments: none
SkipField method Removes the field, tcSkipField from the search.
Syntax: SkipField( )
Return: none
Arguments: none
tcSkipField specifies the field to ignore during the search.

See Also

Guidelines for Using Visual FoxPro Foundation Classes | Visual FoxPro Foundation Classes A-Z | Visual FoxPro Foundation Classes