PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK
  • Deleting all the files from an archive
  • Deleting all the files from an archive
zipDeleteAll (Example)
Deleting all the files from an archive
Reports and QueriesWindows The following code is used to delete all the files from an archive.
// Declare and initialize the variables
ArchiveName is string = "MyArchive"
ErrorCodeOpen is int
ErrorCodeDel is int
 
// Open an archive
ErrorCodeOpen = zipOpen(ArchiveName, "C:\Directory\Archives\ArchivePdf.zip")
 
IF ErrorCodeOpen = 0 THEN
// Delete all the files
ErrorCodeDel = zipDeleteAll(ArchiveName)
IF ErrorCodeDel <> 0 THEN
Error(zipMsgError(ErrorCodeDel))
END
ELSE
  Error(zipMsgError(ErrorCodeOpen))
END
Deleting all the files from an archive
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment