HB_GETUNZIPFILE()
Gets the number of files that are in the zipfile
- Syntax
-
- HB_GETUNZIPFILE( <cFile>) ---> nNumber
- Arguments
-
- <cFile> Name of the zip file
- Returns
-
- <nNumber> The number of files contained inside the zipfile
- Description
-
- This function returns the number of files that is stored in the zipfile. The purpose for this function is to use in conjuntion with the HB_UNZIPFILE() function, so you can use returned result in the code block. See example below.
Examples
FUNCTION MAIN()
Local nFiles :=HB_GETUNZIPFILE('test.zip')
if nFiles >0
? "This files Contains ",nfiles
endif
Return Nil
Here is an example of How to use HB_GETUNZIPFILE() in conjunction
with HB_UNZIPFILE()
Function Main()
Local aGauge,nLen
aGauge := GaugeNew( 5, 5, 7,40 , "W/B", "W+/B" ,'²')
GaugeDisplay( aGauge )
nLen := HB_GETUNZIPFILE('test22')
hb_UNZIPFILE('test22',{|cFile,nPos| GaugeUpdate(aGauge,nPos/nLen),qout(cFile)},.t.)
Return Nil
- Status
- Ready
- Compliance
-
- This function is a Harbour extension
- Platforms
-
- All
- Files
-
- Library is zlib.lib and zlib_bor.lib For Borland Compilers Library is zlib.lib zlib_ms.lib for MSVC compilers