OverwritePrompt: Boolean;
The OverwritePrompt property determines whether additional warning dialog box opens on saving to the existing file.
The property is set to True by default, the additional dialog box opens. Clicking the YES button in the dialog box allows for overwriting the selected file, the saving dialog box closes, and the Execute method returns True. Clicking the NO button in the dialog box returns the focus to the saving dialog box to select another file.
If the OverwritePrompt property is set to False, the additional dialog does not open. On selecting existing file it is allowed to overwrite it, and after the saving dialog box closes, the Execute method returns True.
See also: