Contents - Index - Previous - Next
DeleteEntries method
Applies to
TVCLZip component
Declaration
function DeleteEntries: Integer;
Description
The DeleteEntries method deletes entries from the zip file specified by the ZipName Property.
Files are deleted in one of two ways:
1) use the Selected property to select the files you wish to delete before calling DeleteEntries.
2) Put filenames and/or wildcard specifications into the FilesList. Any files within the zip file that match any of the specified files or wildcard masks within the FilesList will be removed from the zip file.
You cannot combine these two methods in one call to DeleteEntries. If any files have had their Selected property set to True, then the FilesList will be cleared before processing the delete operation.
Return Value
The return value specifies the actual number of entries deleted from the zip file.