Contents - Index - Previous - Next


Filename property

 

Applies to

TVCLUnZip component

 

Declaration

property Filename[Index]: Integer: TZipFilename;

 

Description

The Filename property returns just the filename portion of the file, without the path. TZipFilename type is just a String type.  

 

If you are using VCLZip, this property is also writable.   Once you have opened up a zip file you may set this property, thereby modifying what is already contained by this property.  It is up to you to be sure not to modify this in such a way that you would end up with two files in the zip archive with the same Filename and Pathname.  

 

If you do set Filename, the archive will be flagged as modified.  After setting all of the Filenames that you wish to set, you should call the SaveModifiedZipFile Method to save the archive with the new Filenames.  

 

Reading Filename: 

 

ThisName := VCLZip.Filename[i];  

 

Writing Filename: 

 

VCLZip.Filename[i] := NewName; 

SaveModifiedZipFile;  

 

Run-time only

Read-only