PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
  • Splitting an archive
  • Multi-part archive
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
Returns the number of parts of a given size required to split a single-part archive.
Remark: This function is available for the archives in ZIP and WDZ format only.
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 26 and later
Android Widget This function is now available in Android widget mode.
Android This function is now available for Android applications.
New in version 26
Android Widget This function is now available in Android widget mode.
Android This function is now available for Android applications.
Android Widget This function is now available in Android widget mode.
Android This function is now available for Android applications.
Example
WINDEVWEBDEV - Server codeReports and QueriesUser code (UMC)Ajax
MyArchive is zipArchive
// Open an archive
ResOpenArchive = zipOpen(MyArchive, "C:\MyArchives\Archive.zip")
 
IF ResOpenArchive = 0 THEN
...
// Number of parts (1.4 MB) required to contain the archive
ResNbNecessaryParts = zipNbPartNeeded(MyArchive, 1400*1024)
Info("To split this archive, " + ResNbNecessaryParts + ...
" part(s) of 1.4 MB are required")
...
END
Syntax
<Result> = zipNbPartNeeded(<Archive> , <Size of parts>)
<Result>: Integer
Number of parts of a given size required to contain an archive.
<Archive>: Character string or zipArchive variable
Name of the archive to be used.
This name can correspond to:
  • the name of an archive, defined by zipOpen or zipCreate.
  • Versions 15 and later
    WINDEVWEBDEV - Server codeReports and QueriesAndroidAndroid Widget iPhone/iPadIOS WidgetMac CatalystAjax the name of a variable of type zipArchive.
    New in version 15
    WINDEVWEBDEV - Server codeReports and QueriesAndroidAndroid Widget iPhone/iPadIOS WidgetMac CatalystAjax the name of a variable of type zipArchive.
    WINDEVWEBDEV - Server codeReports and QueriesAndroidAndroid Widget iPhone/iPadIOS WidgetMac CatalystAjax 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.
<Size of parts>: Integer
Size of parts in bytes. The default size is equal to 1.44 MB (1400*1024 bytes). The minimum size is equal to 300 KB for each part (300*1024 bytes).
Remarks

Splitting an archive

A multi-part archive is created by zipSplit. zipNbPartNeeded is used to determine the number of parts required to split the archive.

Multi-part archive

Using zipNbPartNeeded on a multi-part archive allows you to calculate the number of parts required for a new splitting.
Business / UI classification: Business Logic
Component: wd270zip.dll
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment