ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Standard functions / Archive functions
  • Closing an archive
zipClose (Example)
Closing an archive
WINDEVWEBDEV - Server codeReports and QueriesUser code (UMC)Ajax The following code is used to close an archive. This archive was previously created with 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 version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 05/26/2022

Send a report | Local help