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/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.
Example
WINDEVUser code (UMC)
MonArchive is zipArchive
// Ouverture d'une archive
ResOuvreArchive = MonArchive.Open("C:\MesArchives\Archive.zip")
// En Windows Mobile:
// ResOuvreArchive = MonArchive.Ouvre("\MesArchives\Archive.zip")
 
IF ResOuvreArchive = 0 THEN
...
// Nombre de parties de 1,4 Mo nécessaires pour contenir l'archive
ResNbPartieNécessaire = MonArchive.NbPartNeeded(1400*1024)
Info("Pour découper cette archive, " + ResNbPartieNécessaire + ...
" partie(s) de 1,4 Mo sont nécessaires")
...
END
Syntax
<Result> = <Archive>.NbPartNeeded(<Size of parts>)
<Result>: Integer
Number of parts of a given size required to contain an archive.
<Archive>: zipArchive variable
Name of a zipArchive variable that corresponds to the archive to use.
<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 <zipArchive variable>.Split. <zipArchive variable>.NbPartNeeded is used to find out the number of supports (diskettes for example) required to split the archive.

Multi-part archive

Using the <zipArchive variable>.NbPartNeeded function on a multi-part archive allows you to calculate the number of parts required for a new cut.
Component: wd260zip.dll
Minimum version required
  • Version 24
This page is also available for…
Comments
Click [Add] to post a comment