PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
  • Closing an archive
zipClose (Example)
Closing an archive
WINDEVUser 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 version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment