PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
New WINDEV, WEBDEV and WINDEV Mobile 26 feature!
  • Principle
  • Reminder
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
Selects files from an archive. The selected files will be processed by the archive management WLanguage functions..
This makes it possible to select only ".doc" files from an archive, for example. In this case, all the WLanguage functions used to handle the whole archive (e.g., <zipArchive variable>.ExtractAll) will only affect the selected files (".doc" files in our example).
Example
Archive is zipArchive
// Open an archive
IF Archive.Open("C:\Archives\Archive.zip") = 0 THEN
// Extract documents only
sPreviousSelection is string = Archive.SelectFile("*.doc")
// Extract all documents from the archive
Archive.ExtractAll(zipDrive)
// Restore previous selection
Archive.SelectFile(sPreviousSelection)
END
Syntax
<Result> = <Archive>.SelectFile([<Selection>])
<Result>: Cadena de caracteres
Previous selection applied to the archive.
<Archive>: Variable de tipo zipArchive
Name of a zipArchive variable that corresponds to the archive to use.
<Selection>: Cadena de caracteres opcional
Generic name of the files to be selected.
Generic characters (* and?) are allowed.
If this parameter is not specified or is set to an empty string (""), the selection will be removed and all files will be processed.
Remarks

Principle

After calling <zipArchive>.SelectFile, the next archive management functions that handle all the files in the archive will take the selection into account: these functions will only manipulate the selected files.
To handle all the files in the archive again, simply call <zipArchive>.SelectFile without specifying the <Selection> parameter.

Reminder

  • LinuxiPhone/iPadUniversal Windows 10 App Only ZIP, TAR and TGZ (TAR.GZ) archives are available.
  • Windows Mobile Only ZIP archives are available.
  • AndroidAndroid Widget CAB archives are not available.
Component : wd260zip.dll
Minimum version required
  • Version 26
This page is also available for…
Comments
Click [Add] to post a comment