ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Standard functions / Archive functions
  • Number of parts required to contain an archive
zipNbPartNeeded (Example)
Number of parts required to contain an archive
WINDEVUser code (UMC) The following code is used to find out the number of parts required to split a single-part archive into sub-archives of 1.4 MB.
// Declare and initialize the variables
ResArchiveCreation is int
ResSplitArchive is int
NumberNecessaryParts is int
 
// Create an archive
ResArchiveCreation = zipCreate("MyArchive", "C:\MyArchives\Archive.zip")
...
// Number of necessary parts
NumberNecessaryParts = zipNbPartNeeded("MyArchive", 1400*1024)
Info("You need " + NumberNecessaryParts + " diskette(s)")
 
// Split the archive
ResSplitArchive = zipSplit("MyArchive", "A:\ArchiveCopy.WDZ")
...
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 05/26/2022

Send a report | Local help