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
  • Compression level and addition time
  • Notes
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
Changes the compression level used when creating an archive in ZIP format or in 7z format.
Versions 17 and later
iPhone/iPad This function is now available for iPhone/iPad applications.
New in version 17
iPhone/iPad This function is now available for iPhone/iPad applications.
iPhone/iPad This function is now available for iPhone/iPad applications.
Versions 18 and later
Android Widget This function is now available in Android widget mode.
New in version 18
Android Widget This function is now available in Android widget mode.
Android Widget This function is now available in Android widget mode.
Versions 21 and later
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
New in version 21
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Example
Syntax
<Result> = zipCompressionLevel(<Archive> , <Compression level>)
<Result>: Integer
  • 0 if the compression level was changed,
  • An error code (value greater than 0) otherwise (see the Notes).
<Archive>: Character string or zipArchive variable
Name of archive to use.
This name can correspond to:
  • or to the name of an archive defined with function zipOpen or function zipCreate.
  • Versions 15 and later
    AndroidAndroid Widget iPhone/iPadIOS WidgetMac Catalyst the name of a variable of type zipArchive.
    New in version 15
    AndroidAndroid Widget iPhone/iPadIOS WidgetMac Catalyst the name of a variable of type zipArchive.
    AndroidAndroid Widget iPhone/iPadIOS WidgetMac Catalyst the name of a variable of type zipArchive.
    Versions 26 and later
    AndroidAndroid Widget iPhone/iPadIOS WidgetMac Catalyst zipArchive variables are now available.
    New in version 26
    AndroidAndroid Widget iPhone/iPadIOS WidgetMac Catalyst zipArchive variables are now available.
    AndroidAndroid Widget iPhone/iPadIOS WidgetMac Catalyst zipArchive variables are now available.
<Compression level>: Integer
Value included between 0 (storage without compression) and 9 (maximum compression).
The default compression level is set to 6.
Remarks

Error codes

The following error codes are returned:
  • 15: Archive in CAB format.
  • 27: Archive in WDZ format.
  • 28: Invalid compression level.
The message corresponding to the error code is returned by zipMsgError.

Compression level and addition time

Caution: A high compression level means that adding a file into the archive will take longer.

Notes

The compression level is defined by the call to the function for all the files that will be added to the archive thereafter (the compression level for the files already found in the archive remains the same).
Caution: Unable to change the compression level of a file found in an existing archive.
Business / UI classification: Business Logic
Component: wd270zip.dll
Minimum version required
  • Version 11
This page is also available for…
Comments
Click [Add] to post a comment