Freigeben über


Find Files/Text Foundation Class

Category File Utilities
Default Catalog Visual FoxPro Catalog\Foundation Classes\Utilities
Class _filer
Base Class Custom
Class Library _utility.vcx
Parent Class _custom

Remarks

This wrapper class uses the FILER.DLL COM object to search for files. It is a simplified version of the filer form.

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 cFileExpression, cSearchPath, cSearchText, lIgnoreCase, lSubFolder, and lWholeWords 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
cFileExpression property Specifies a file skeleton for the search. This expression can include wildcards such as ? and *.
Default: ""
cSearchPath property Specifies the directory in which to begin searching for files.
Default: ""
cSearchText property Specifies the text string to search for within files.
Default: ""
lIgnoreCase property Specifies whether to ignore case during the search.
Default: .T.
lPromptDir property Specifies whether to prompt the user for a search path if none is entered.
Default: .T.
lSubFolder property Specifies whether to search in subfolders for files.
Default: .T.
lWholeWords property Specifies whether to search for whole word matches.
Default: .F.
oFiles property Specifies a collection of files returned by the Find search.
Default: .F.
Find method Searches for files that meet the criteria specified by the properties.
Syntax: Find( )
Return: none
Arguments: none

See Also

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