Sign in Join
FPDoc Onlineexperiment

TSelectDirectoryDialog.CheckFileMustExist function

Member of TSelectDirectoryDialogprotectedIn unit Dialogs

Checks whether a specified directory already exists, and displays a message when missing.

Declaration

pascal
function CheckFileMustExist(const AFilename: string): Boolean
 ; override

Arguments

AFilename

Directory name examined in the method.

Function result

True if the specified directory exists, and False when it is missing.

Description

CheckFileMustExist is an overridden Boolean function in TSelectDirectoryDialog. It is check whether the directory specified in AFilename already exists on the file system. The return value is True if the directory in AFilename already exists. It is False if the directory does not exist.

CheckFileMustExist re-implements the method inherited from TOpenDialog to use directory-specific resource strings when messages are displayed for a missing value in AFilename.

CheckFileMustExist is called from the CheckFile method in TOpenDialog.

See also

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