ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / WLanguage functions / Standard functions / Archive functions
  • A multi-part archive can be made of a single part
  • Reminder
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
Returns the number of sub-archives (parts) of an archive in CAB, RAR, ZIP, WDZ, 7z, gzip, TAR or TGZ (TAR.GZ) format.
New in version 2025
WINDEVWindowsLinux The gzip format (.gz extension) is now supported.
WINDEVUser code (UMC)
MonArchive is zipArchive
// Ouverture d'une archive
ResOuvreArchive = zipOpen(MonArchive, "C:\MesArchives\Archive.zip")
IF ResOuvreArchive = 0 THEN
	...
	// Nombre de parties présentes dans l'archive 
	ResNbPartie = zipNbPart(MonArchive)
	Info("Cette archive est composée de " + ResNbPartie + " partie(s)")
	...
END
Syntax
<Result> = zipNbPart(<Archive>)
<Result>: Integer
Number of parts found in the specified archive:
  • 1: if the archive is single-part or if the multi-part archive contains a single 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

Linux Only archives in ZIP, gzip, TAR and TGZ (TAR.GZ) formats are available.
Business / UI classification: Business Logic
Component: wd300zip.dll
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 03/27/2025

Send a report | Local help