opendialog FileName property
Return to Introduction  Previous page  Next page
Applies to
dcFileInfo, dcFileCRC, dcFileTail, dcShellIcon, dcShellLink, dcShellProperties, dcOpenDialog, dcSaveDialog components.  

Declaration
property FileName: String;  

Description
The FileName property specifies and returns the name and complete directory path of selected file. The value of FileName is the same as the first item in the Files property.  
 
To make a file name appear by default in the dialog's edit box, assign a value to FileName in the Object Inspector or in program code. Programmatic changes to FileName have no effect while the dialog is active.  
 
tip Use ExtractFilePath and ExtractFileName functions to sepearate the file path and filename.  

See also
Files and DefaultExt properties.  
File not found.