|
|
|
|
Occurs before application will overwrite existing file.
type TZFConfirmOverwriteEvent = procedure(
Sender: TObject;
SourceFileName : String;
var DestFileName: String;
var Confirm: Boolean
) of object;
property OnConfirmOverwrite: TZFConfirmOverwriteEvent;
Description
Write a OnConfirmOverwrite event handler to perform some specific actions before overwriting file or to cancel it. OnConfirmOverwrite event can be triggered by AddFiles, MoveFiles, UpdateFiles or ExtractFiles before overwriting existing file if Options.OverwriteMode = omPrompt.
The Sender parameter is the object whose event handler is called.
SourceFileName indicates the name of the file that will overwrite existing file.
DestFileName indicates the name of the file being overwritten. Set DestFileName if you want to save this file with different name instead of overwriting existing file.
Confirm determines if file will be overwritten. Set Confirm to False if you want to cancel overwriting existing file. Default value for Confirm is True.
|
|