Contents - Index - Previous - Next


MultiMode property

 

Applies to

MultiZipInfo property

 

Declaration

property MultiZipInfo.MultiMode: TMultiMode = (mmNone, mmSpan, mmBlocks);

 

 

Description

The MultiMode property determines whether a multi-part zip file will be created as several files on the same disk or a a zip file that actually spans physical disks.

  

Value Meaning  

mmNone Normal zip files  

mmSpan Zip file will physically span disks (if large enough)  

mmBlocks Zip file will be broken into separate files (blocks) on the same disk (typically to be copied to separate disks later).  

 

When using the VCLUnZip component you should set this property as follows:

  

UnZipper.MultiMode := mmNone; 

 

When using the VCLZip component, you may set or read this property the same way, or you may access it through the MultZipInfo Property as follows:

  

Zipper.MultiZipInfo.MultiMode := mmBlocks;  

 

When opening a zip file, (that is after calling the ReadZip Method) if a multi-file zip file is detected, this property is automatically set according to what type of media the zip file is on.  If the zip file is on a REMOVABLE disk, the multi-file zip is considered to be a Spanned Disk Set with each file residing on a separate removable disk.  Therefore the MultiMode property is set to mmSpan.  If, however, the zip file is NOT on a REMOVABLE disk, it is considered to be a Blocked Zip File and this property is set to mmBlocks.  

After opening the zip file, you may modify this property if the automatic detection is not correct.