TCustomFileListBox.FileName property
FileName - the name of the selected file.Declaration
property FileName: string read FFileName write SetFileName;Description
FileName is a
String property which contains the file
name for the currently selected item in the list box control. The value in
FileName is updated when an item in the control is selected, or when a new
value is assigned to the
ItemIndex property.
Assigning a new value to the property causes the IndexOfFile
method to be called to locate the specified value in the Items for
the control. The private UpdateSelectedFileName method is called
to ensure that the new file name includes the path information in
Directory, and to signal the OnChange event handler
(when assigned).
See also
An experiment, built from Lazarus main 2dfa93c66e of 10-22-2026. Not the official Lazarus documentation.
