Compartir a través de


Find Files/Text Foundation Class

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

Category

File Utilities

Default Catalog

Visual FoxPro Catalog\Foundation Classes\Utilities

Class

_filer

Base Class

Custom

Class Library

_utility.vcx

Parent Class

_custom

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 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.

Defa ult: .F.

Find method

Searches for files that meet the criteria specified by the properties.

Syntax: Find( )

Return: none

Arguments: none

See Also

Concepts

Guidelines for Using Visual FoxPro Foundation Classes

Reference

Visual FoxPro Foundation Classes A-Z

Other Resources

Foundation Class Samples