PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

  • Merging the sub-archives found in a multi-part archive
  • Merging the sub-archives found in a multi-part archive
zipMerge (Example)
Merging the sub-archives found in a multi-part archive
WINDEVWEBDEV - Server codeReports and QueriesAjaxUser code (UMC) The following code is used to merge the sub-archives of a multi-part archive. zipIsMulti is used to check whether the archive is a multi-part archive.
// Declare and initialize the variables
ErrorCodeOpen is int
ErrorCodeMerge is int
IsMulti is boolean
 
// Open an archive
ErrorCodeOpen = zipOpen("MyArchive", "A:\MyArchive.zip")
 
IF ErrorCodeOpen = 0 THEN
// Is the archive a multi-part archive?
IsMulti = zipIsMulti("MyArchive")
// Merge the archive
ErrorCodeMerge = zipMerge("MyArchive", "C:\MyArchives\ArchiveMulti.WDZ")
// Error message if the sub-archives have not been merged
IF ErrorCodeMerge <> 0 THEN
Error(zipMsgError(ErrorCodeMerge))
END
ELSE
Error(zipMsgError(ErrorCodeOpen))
END
Merging the sub-archives found in a multi-part archive
Windows Mobile The following code is used to merge the sub-archives of a multi-part archive. zipIsMulti is used to check whether the archive is a multi-part archive.
// Declare and initialize the variables
ErrorCodeOpen is int
ErrorCodeMerge is int
IsMulti is boolean
 
// Open an archive
ErrorCodeOpen = zipOpen("MyArchive", "\Backup.zip")
 
IF ErrorCodeOpen = 0 THEN
// Is the archive a multi-part archive?
IsMulti = zipIsMulti("MyArchive")
// Merge the archive
ErrorCodeMerge = zipMerge("MyArchive", "\MyArchives\ArchiveMulti.zip")
// Error message if the sub-archives have not been merged
IF ErrorCodeMerge <> 0 THEN
Error(zipMsgError(ErrorCodeMerge))
END
ELSE
Error(zipMsgError(ErrorCodeOpen))
END
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment