FileSaveDialog

Inheritance Hierarchy

          IComponent

          IFileDialog

          IFileSaveDialog

          FileSaveDialog

Description

The FileSaveDialog component organizes the save file dialog box.

Working with the Component

Various component properties can be used to determine which files can be selected in the dialog box. To initialize the dialog box, call the Execute method in the code. After selecting the folder and clicking the Save button the file is available in the FileName property.

After all dialog box parameters have been set, you can view results of the work without compiling the main form. To do this, select the Check option in the context menu in the file save dialog box.

Example

Properties of the FileOpenDialog Component

  Property name Brief description
CheckFileExists The CheckFileExists property determines the system reaction if the user selects a non-existing file.
CheckPathExists The CheckPathExists property determines the system reaction if the 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 the 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 used by default by this dialog box component.
DereferenceLinks The DereferenceLinks property determines the value returned by the dialog box when a tag is selected.
FileName The FileName property returns the name and the 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 of added filters is set by default on opening the dialog box.
InitialDirectory The InitialDirectory property determines the directory, which opens by default when the dialog box opens.
Name The Name property determines a 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 box.
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 a title of the dialog box.
ValidateNames The ValidateNames property determines whether file name correctness is checked.

Methods of the FileOpenDialog Component

  Method name Brief description
Execute The Execute method initializes a save file dialog box.

See also:

Standard Components