ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Standard functions / Archive functions
  • A multi-part archive can be made of a single part
  • Reminder
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
Returns the number of sub-archives (parts) found in an archive in CAB, RAR, ZIP, WDZ, 7z, TAR or TGZ (TAR.GZ) format.
WINDEVWEBDEV - Server codeReports and QueriesUser code (UMC)Ajax
MyArchive is zipArchive
// Open an archive
ResOpenArchive = zipOpen(MyArchive, "C:\MyArchives\Archive.zip")
IF ResOpenArchive = 0 THEN
...
// Number of parts found in the archive
ResNbParts = zipNbPart(MyArchive)
Info("This archive includes " + ResNbParts + " part(s)")
...
END
Syntax
<Result> = zipNbPart(<Archive>)
<Result>: Integer
Number of parts found in the specified archive:
  • 1: if this is a single-part archive or if the multi-part archive only contains one sub-archive.
  • n: If the archive is multi-part.
<Archive>: Character string or zipArchive variable
Name of the archive to be used.
This name can correspond to:
Remarks

A multi-part archive can be made of a single part

A multi-part archive can be made of a single sub-archive (part). Indeed, when splitting an archive, the size specified for the sub-archives can be greater than the size of the archive.

Reminder

LinuxiPhone/iPadIOS WidgetMac Catalyst Only ZIP, TAR and TGZ (TAR.GZ) archives are available.
Business / UI classification: Business Logic
Component: wd290zip.dll
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