Sign in Join
FPDoc Onlineexperiment

TMaskList.Matches function

Member of TMaskListpublicIn unit Masks

Determines whether the specified file name matches a mask in the list.

Declaration

pascal
function Matches(const AFileName: string): Boolean

Arguments

AFileName

File name examined in the method.

Function result

True when the file name matches one of the mask items.

Description

Matches is a Boolean function used to determine if the specified file name matches one of the file masks in the list.

AFileName contains the file name examined in the method.

Matches uses the TMask or TWindowsMask instances in Items to perform the file name comparison. Each mask in Items is used to call its Matches method until a match is found, or until all of the masks have been visited.

The return value is True when a mask is found that matches the file name.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.