IFileSaveDialog.OverwritePrompt

Syntax

OverwritePrompt: Boolean;

Description

The OverwritePrompt property determines whether additional warning dialog is displayed on saving to the existent file.

Comments

The property is set to True by default, the additional dialog is displayed. If the YES button is clicked in the dialog, it is allowed to overwrite it, the saving dialog will be closed and the Execute method returns True. If the NO button is clicked in the dialog, the focus will be returned to the saving dialog to select another file.

If the OverwritePrompt property is set to False, the additional dialog is not displayed. On selecting existent file it is allowed to overwrite it and after the saving dialog is closed, the Execute method returns True.

See also:

IFileSaveDialog