Delphi Database, Delphi Components from ComponentAce
Products Download Order Contact us
TZipForge.OnConfirmOverwrite
TZipForge
Top 


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.

        © 2003 - 2024 ComponentAce  | .net zip component | barcode for .net | delphi zip component | delphi database Dec 28, 2024 
        © 2003 - 2024 ComponentAce  | .net zip component | barcode for .net | delphi zip component | delphi database Dec 28, 2024