Sign in Join
FPDoc Onlineexperiment

TCustomFileListBox.Directory property

Member of TCustomFileListBoxpublicIn unit FileCtrl

The Directory or Folder in which the file is located.

Declaration

pascal
property Directory: string read FDirectory write SetDirectory;

Description

Directory is a String property which contains the path on the local file system to the files or and/or directories displayed in the list box control. The initial value for Directory is assigned in the constructor and defaults to the current directory for the application.

The value in Directory is prepended to the value in Filename when the UpdateSelectedFileName method is called from methods like: Click, KeyUp, SetItemIndex, SetFileName.

Changing the value in Directory causes the UpdateFileList method to be called to reload the file and or directory names stored in the Items property.

Changing the value in Directory does not automatically update the value in Drive. If Directory includes a drive designator like 'D:\config\', the drive portion is not applied to the Drive property. In addition, setting a value in Drive does not update the value in Directory. The only time Drive and Directory are automatically sync'd is in the Create constructor.

See also

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