|
|
|
|
|
- Error codes
- Files compressed with the earlier WINDEV versions
- Progress Bar
fUncompress (Function) In french: fDécompacte Decompresses a file that was compressed by fCompress.
ResDécompresse = fUncompress("C:\MesRépertoires\FichierCompressé.txt", ...
"C:\MesRépertoires\FichierDécompressé.txt")
Syntax
<Result> = fUncompress(<Path of file to decompress> [, <Path of decompressed file>])
<Result>: Integer - 0 if the decompression was performed,
- an error code (value greater than 0) otherwise. The error code message can be retrieved using the ErrorInfo function with the rrMessage constant.
<Path of file to decompress>: Character string Name and full (or relative) path of file to decompress (up to 260 characters). A UNC path can be used. This file must have been compressed by fCompress. <Path of decompressed file>: Optional character string The following cases are supported: - To decompressed a file under a given name and in a given directory:
Name and full (or relative) path of the decompressed file (up to 260 characters). A UNC path can be used. - To decompressed a file under a its initial name (before compression) and in a given directory:
Directory (string ending with "\" or ":") of the decompressed file (up to 260 characters). A UNC path can be used. - If this parameter is not specified:
The file is decompressed under its name and in its source directory (before compression). Warning The original directory must exist.
Remarks The following error codes are returned: - 1: The file to be uncompressed cannot be opened.
- 2: Uncompressed file cannot be created. This error occurs:
- if <Path of file to decompress> and <Path of decompressed file> are identical,
- if the directory of <Path of decompressed File> does not exist.
- 3: The file to be uncompressed has not been compressed by fCompress.
- 4: The file cannot be uncompressed: it is simply copied.
- 6: Uncompress has been aborted by the user: function fStopCompress has been executed.
- 7: Not enough space to create the Uncompressed file.
The error code message can be retrieved using the ErrorInfo function with the rrMessage constant. Files compressed with the earlier WINDEV versions fUncompress can be used to decompress files compressed with earlier versions of WINDEV and WEBDEV.
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|