PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
This content has been translated automatically. Click here to view the French version.
  • Error codes
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
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 PROCÉDURE 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>: entier
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: The path passed as parameter does not exist.
  • 2: Access denied: the user has no sufficient rights.
  • 3: The archive is corrupted.
  • 4: The path does not exist in the archive.
  • 6: The files of the sub-archives are not arranged in order (when extracting from a multi-part archive).
  • 21: The specified password is not correct.
The message corresponding to the error code is returned by zipMsgError.
Remarks:
  • LinuxUniversal Windows 10 AppiPhone/iPadIOS WidgetMac Catalyst Only ZIP, TAR and TGZ (TAR.GZ) archives are available.
  • AndroidAndroid Widget The CAB format is not available.
Component: wd270.dll
Minimum version required
  • Version 26
This page is also available for…
Comments
Click [Add] to post a comment