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
  • Error codes
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
Opens an existing archive in CAB format.
WINDEVReports and QueriesUser code (UMC)
MonArchive is zipArchive
// Ouverture d'une archive
ResOuvreArchive = zipOpenCAB(MonArchive, "C:\MesArchives\Archive.cab")

// Affichage du message d'erreur si l'archive n'a pas été ouverte
IF ResOuvreArchive <> 0 THEN
	Error(zipMsgError(ResOuvreArchive))
END
Syntax
<Result> = zipOpenCAB(<Archive> , <Archive path> [, <Archive opening mode>])
<Result>: Integer
  • 0 if the archive was opened,
  • An error code (value greater than 0) otherwise. For more details on these error codes, see the Remarks.
<Archive>: Character string or zipArchive variable
Name of the archive to be used.
This name can correspond to:
<Archive path>: Character string
Path and name of archive (up to 260 characters). The archive extension can be specified.
<Archive opening mode>: Optional constant (or combination of constants)
Options for opening the archive:
zipHeader64Allows you to create an archive larger than 4 GB on which zipChangePath can be used.
zipReadOpening in read-only.
Remarks

Error codes

The following error codes are returned:
  • 1: Path passed as parameter does not exist.
  • 2: Access denied: user does not have sufficient rights.
  • 3: The archive is corrupt.
  • 6: The files in the sub-archives are not in the right order (this is the case when opening a multi-part archive).
The message corresponding to the error code is returned by zipMsgError.
Component: wd300zip.dll
Minimum version required
  • Version 14
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 03/28/2025

Send a report | Local help