PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • Closing an archive
zipClose (Example)
Closing an archive
WINDEVWEBDEV - Server codeReports and QueriesWindows MobileAjaxUser code (UMC) The following code is used to close an archive. This archive was created by zipCreate.
// Declare and initialize the variables
ArchiveName is string = "MyArchive"
ResArchiveCreation is int

// Create the archive named "MyArchive"
ResArchiveCreation = zipCreate(ArchiveName, "C:\Archives\Archive.zip")
// In WINDEV Mobile: ResArchiveCreation = zipCreate(ArchiveName, "\Archives\Archive.zip")
IF ResArchiveCreation = 0 THEN
// Processes in the archive
...
// End of processes in the archive
ELSE
// Display an error message if the archive was not created
Error(zipMsgError(ResArchiveCreation))
END
// Close the archive
zipClose(ArchiveName)
Minimum required version
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment