Contents - Index - Previous - Next


OnStartUnZip event

 

Applies to

TVCLUnZip component

 

Declaration

property OnStartUnZip: TStartUnZipEvent = procedure(Sender: TObject; FileIndex: Integer; var FName: string; var Skip: Boolean); of object;

 

 

Description

The OnStartUnZip event handler is triggered just before a file is about to be extracted.  FName is the complete path and filename of the file that is about to be unzipped.  Notice that it is a VAR parameter.  This allows you to modify the destination and filename of the file just before it is unzipped.  If you do this, be sure it is a complete and valid filename, including the device, path, and filename.  If the destination directory does not exist, then VCLZip will create the complete directory path for you.

  

If you wish to skip this file altogether (don't unzip it) then just set Skip to True.  

 

NOTE: Prior to VCLZip 2.18, FName was not a VAR parameter and could not be modified.