The FileSaveDialog component organizes the save file dialog.
Using different component properties the files available in the dialog can be determined. To initialize this dialog call in the code the Execute method. After selecting the folder and clicking the Save button the file is available in the FileName property.
After all dialog parameters have been configured you can view results of the work without compiling the main form. To do this select the Check option in the context menu in a file save dialog.
| Property name | Brief description | |
| CheckFileExists | The CheckFileExists property determines the system reaction if a user selects a non-existing file. | |
| CheckPathExists | The CheckPathExists property determines the system reaction if a user selects a file in a non-existing directory. | |
| ComponentCount | The ComponentCount property returns the number of child components. | |
| Components | The Components property returns the child component. | |
| CreatePrompt | The CreatePrompt property determines whether a warning message must be displayed if a user tries to select a name of a non-existing file, requests to create a new file. | |
| Data | The Data property is used to store any custom data. | |
| DefaultExt | The DefaultExt property determines the file extension, which is default for this dialog. | |
| DereferenceLinks | The DereferenceLinks property determines the value, which the dialog returns when a tag is selected. | |
| FileName | The FileName property returns the name and path to the directory of the last selected file. | |
| FileNames | The FileNames property returns the collection of names and paths to files, when more than one file is selected. | |
| Filter | The Filter property determines the text of the current filter for entering data. | |
| FilterIndex | The FilterIndex property determines, which file syntax, specified in the Filter property, must be set default on opening the dialog. | |
| InitialDirectory | The InitialDirectory property determines the directory, which opens by default, when a dialog is opened. | |
| Name | The Name property determines the component name. | |
| OverwritePrompt | The OverwritePrompt property determines whether the warning message should be shown, if the user tries to select name of already existing file. | |
| ShowHelp | The ShowHelp property determines whether the Help button is displayed in the dialog window. | |
| Tag | The Tag property is not used by the compiler. The user can change the value of the Tag property and use it as required. | |
| Title | The Title property determines the title of the dialog window. | |
| ValidateNames | The ValidateNames property determines the correctness of using the file name. |
| Method name | Brief description | |
| Execute | The Execute method initializes a save file dialog. |
See also: