BFC_Dir

Description

Ever wanted to get a list of files in a certain directory? Well with this component you can get it. Fill in the properties, execute the ReadDir method and all the properties will be updated with the correct values.

Properties

ListDirs   Declaration
property ListDirs: TStrings;

Description
Will hold the names of al the subdirectories found.

ListFiles   Declaration
property ListFiles: TStrings;

Description
Will hold the names of all the files found.

PathInName   Declaration
property PathInName: Boolean;

Description
Determines if the name of the directory will be includes in the filenames.

PathName   Declaration
property PathName: String;

Description
Defines the base-directory for the search

FileName   Declaration
property FileName: String;

Description
Defines the name of the file(s) to serach for. Wildcards are accepted.

Methods

ReadDir   Declaration
procedure SearchDir;

Description
Read the files and subdirectories as indicated in the properties.

Events

None