[Overview][Types][Classes][Procedures and functions][Index] Reference for unit 'Masks' (#lazutils)

TMaskList.Matches

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

Declaration

Source position: masks.pas line 80

public function TMaskList.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 instances in Items to perform the file name comparison. Each TMask instance 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

TMaskList.Items

  

The mask items in the list.

TMaskList.Count

  

The number of mask items in the list.

TMask.Matches

  

Determines whether the specified file name matches the mask value.