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.
  • Splitting an archive
  • Multi-part archive
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
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.
WINDEVWEBDEV - Server codeReports and QueriesWindows MobileUser code (UMC)Ajax
// Ouverture d'une archive
ResOuvreArchive = zipOpen("MonArchive", "C:\MesArchives\Archive.zip")
// En Windows mobile:
// ResOuvreArchive = zipOuvre("MonArchive", "\MesArchives\Archive.zip")
 
IF ResOuvreArchive = 0 THEN
...
// Nombre de parties de 1,4 Mo nécessaires pour contenir l'archive
ResNbPartieNécessaire = zipNbPartNeeded("MonArchive", 1400*1024)
Info("Pour découper cette archive, " + ResNbPartieNécessaire + ...
" partie(s) de 1,4 Mo sont nécessaires")
...
END
WINDEVWEBDEV - Server codeReports and QueriesWindows MobileUser code (UMC)Ajax
MonArchive is zipArchive
// Ouverture d'une archive
ResOuvreArchive = zipOpen(MonArchive, "C:\MesArchives\Archive.zip")
// En Windows Mobile:
// ResOuvreArchive = zipOuvre(MonArchive, "\MesArchives\Archive.zip")
 
IF ResOuvreArchive = 0 THEN
...
// Nombre de parties de 1,4 Mo nécessaires pour contenir l'archive
ResNbPartieNécessaire = zipNbPartNeeded(MonArchive, 1400*1024)
Info("Pour découper cette archive, " + ResNbPartieNécessaire + ...
" partie(s) de 1,4 Mo sont nécessaires")
...
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 (with quotes) or zipArchive variable
Name of archive to use.
This name can correspond to:
  • the name of an archive, defined by zipOpen or zipCreate.
  • Versions 15 and later
    WINDEVWEBDEV - Server codeReports and QueriesWindows MobileAjax or in the name of an Variable of type zipArchive.
    New in version 15
    WINDEVWEBDEV - Server codeReports and QueriesWindows MobileAjax or in the name of an Variable of type zipArchive.
    WINDEVWEBDEV - Server codeReports and QueriesWindows MobileAjax or in the name of an Variable of type zipArchive.
<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 find out the number of supports (diskettes for example) required to split the archive.

Multi-part archive

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