ImageEn, unit ieopensavedlg

TOpenImageEnDialog.FileName

TOpenImageEnDialog.FileName


Declaration


property FileName : String;


Description


Returns the name and complete directory path of the most recently selected file. The value of FileName is the same as the first item in the Files property.

To specify a default filename appear for the dialog's edit box, assign it to this property before calling Execute.

If you require widestring support, use FilenameW.


Example


// Select an image to load in an ImageEnView
If OpenImageEnDialog1.Execute then
  ImageEnView1.IO.LoadFromFile(OpenImageEnDialog1.FileName);


See Also


- FilenameW
- Files