Sign in Join
FPDoc Onlineexperiment

TOpenDialog.CheckFileMustExist function

Member of TOpenDialogprotectedIn unit Dialogs

Determines whether the specified file name exists.

Declaration

pascal
function CheckFileMustExist(const AFileName: string): Boolean; virtual

Arguments

AFileName

File name (including path) checked in the method.

Function result

True if the specified file exists on the local file system.

Description

CheckFileMustExist is a Boolean function used to check whether the file in AFilename exists on the local file system. The return value is True when FileExistsUTF8 finds the specified file name. If the file is not found, an error message is displayed with the value in rsfdFileNotExist.

CheckFileMustExist is used in the implementation of the CheckFile method.

See also

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