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 / WLanguage procedure
  • Error codes
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
Error handling WLanguage procedure called by zipExtractDirectory
WLanguage procedure ("Callback") called if an error is encountered when extracting files with zipExtractDirectory.
Example
Archive is zipArchive
// Ouverture d'une archive
IF zipOpen(Archive, "C:\Archives\Archive.zip") = 0 THEN
	// Extraction du répertoire "Temp" à la racine de l'arborescence des fichiers de l'archive
	zipExtractDirectory(Archive, "Temp", zipDrive, zipExtraitRépertoire_CallbackErreur)
END

INTERNAL PROCEDURE zipExtraitRépertoire_CallbackErreur(CodeErreur is int, ...
	NomFichier is string)
	IF CodeErreur = 1 THEN 
		RETURN zipCancel
	END
END
Syntax
<Result> = zipExtractDirectory_CallbackError(<Error code> , <File name>)
<Result>: Integer constant
The procedure can return one of the following constants:
zipCancelCancels the extraction of files from the archive.
zipIgnoreIgnores the file in error.
zipRetryRetries the file extraction.
<Error code>: Integer
Code of the error encountered during the extraction of the file.
<File name>: Character string
Path of the file that will be processed by zipExtractDirectory.
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.
  • 4: The path does not exist in the archive.
  • 6: Sub-archive files are not in order (case of extraction from a multi-part archive).
  • 21: The password specified is not correct.
The message corresponding to the error code is returned by zipMsgError.
Remarks:
  • iPhone/iPadIOS WidgetMac Catalyst Only archives in ZIP, TAR, gzip and TGZ (TAR.GZ) formats are available.
  • AndroidAndroid Widget The CAB format is not available.
Minimum version required
  • Version 26
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 03/27/2025

Send a report | Local help