PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • Error codes
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
Opens an existing archive in RAR format.
WINDEVWEBDEV - Server codeReports and QueriesAjaxUser code (UMC)
// Open an archive
ResOpenArchive = zipOpenRAR("MyArchive", "C:\MyArchives\Archive.rar")
// Display an error message if the archive was not opened
IF ResOpenArchive <> 0 THEN
        Error(zipMsgError(ResOpenArchive))
END
Windows Mobile
// Open an archive
ResOpenArchive = zipOpenRAR("MyArchive", "\MyArchives\Archive.rar")
// Display an error message if the archive was not opened
IF ResOpenArchive <> 0 THEN
        Error(zipMsgError(ResOpenArchive))
END
Syntax
<Result> = zipOpenRAR(<Archive> , <Archive Path> [, <Opening Mode of Archive>])
<Result>: Integer
  • 0 if the archive was opened,
  • An error code (value greater than 0) otherwise. See Notes for more details.
<Archive>: Character string (with quotes) or zipArchive variable
Name of archive to open.
This name can correspond to:
<Archive Path>: Character string (with quotes)
Path and name of archive (up to 260 characters). The archive extension can be specified.
<Opening Mode of Archive>: Optional constant (or combination of constants)
Options for opening the archive:
zipHeader64Allows you to create an archive exceeding 4 GB on which zipChangePath can be used.
zipReadOpening in read-only.
Remarks

Error codes

The following error codes are returned:
  • 1: The path passed in parameter does not exist.
  • 2: Access denied: the user has no sufficient rights.
  • 3: The archive is corrupted.
  • 6: The files of the sub-archives are not arranged in order (when opening a multi-part archive).
The message corresponding to the error code is returned by zipMsgError.
Components
WINDEVWEBDEV - Server codeReports and Queries wd230zip.dll
Windows Mobile wp230zip.dll
Linux wd230zip.so
Minimum required version
  • Version 14
This page is also available for…
Comments
Click [Add] to post a comment