JVCL Help:TJvFilenameEdit.FileName

From Project JEDI Wiki
Jump to navigationJump to search
JEDI Visual Component Library Help

Search in JVCL Help

 
Search in all projects
 

Summary

Indicates the file name displayed in the edit portion of the combo edit control.


Pascal

 propertyFileName: TFileName;


Description

Set FileName to initialize the combo edit to a particular file name. Read FileName to obtain the name of the file that was selected by the user.
When the user uses the File-selection dialog to select a new file, the selected file becomes the value of the FileName property. The value of the Text property also changes to the new file when the FileName property value changes.
Property FileName does not return entered parameters, thus:

Text entered in edit box FileName returns
'C:TempMyProgram' Param1 Param2 'C:TempMyProgram'
'C:Program FilesMyExe.exe' 'C:Program'
'C:Program FilesMyExe.exe' 'C:Program FilesMyExe.exe'
'C:Program FilesMyExe.exe' Param1 'C:Program FilesMyExe.exe'
'C:Program FilesMyExe.exe' Param1 'C:Program FilesMyExe.exe' Param1


Use AddQuotes to automatically add quotes to file names with spaces in their name.


See Also

TJvFileDirEdit.LongName, TJvFileDirEdit.ShortName


About

Notes

The file entered in the combo edit control must exist, otherwise an empty string is returned.


Contribute to this help topic

This documentation wiki is based on the collaborative effort of Project JEDI users. Your edits are welcome in order to improve documentation quality: edit this page