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

TFileAttr

Enumerated type with file and directory attributes used in TFileListBox.

Declaration

Source position: filectrl.pp line 40

type TFileAttr = (

  ftReadOnly,

  

File is read-only.

  ftHidden,

  

File is hidden. For UNIX-like environments, this means that the file name starts with a '.' (Period) character.

  ftSystem,

  

File is a system file. For UNIX-like environments, this means that it is a character, block, or FIFO file.

  ftVolumeID,

  

Drive Volume label used on the Windows FAT (not FAT32) file system. Volume labels are not used on UNIX-like file systems.

  ftDirectory,

  

File attribute for a directory entry.

  ftArchive,

  

File is ready to be archived. Not used for UNIX-like file systems.

  ftNormal

  

File has no other file attributes.

);

Description

TFileAttr is an enumerated type with values that represent file and directory attributes for a selection in TFileListBox. Values from TFileAttr are stored in the TFileType set, which is used to implement the FileType property in TFileListBox.

Values in TFileAttr generally correspond to the file attributes used in TSearchRec from the FreePascal RTL (Run-Time Library). The differences are:

ftNormal
This represents a file lacking any other file attributes; represented in TSearchRec with the Integer value 0 (zero).
fsAnyFile
This value from TSearchRec is not represented in TFileAttr; it is a search mask and not an actual file attribute.

See also

TFileListBox

  

Implements a file selection list box control.

TFileType

  

Set type used to store file attributes.

TSearchRec

FindFirst

FindNext

FindClose


Version 3.2 Generated 2024-02-25 Home