Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Dynazip 5
Message
 
To
07/11/2006 17:25:58
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Title:
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01167866
Message ID:
01167962
Views:
6
#DEFINE UNZIP_COUNTALLZIPMEMBERS    1
#DEFINE UNZIP_GETNEXTZIPINFO        2

LOCAL ;
	loUnZip AS "duzactxctrl.duzactxctrl.1", ;
	lnTotalFiles AS INTEGER, ;
	lnFile AS INTEGER

LOCAL ARRAY ;
	laFiles(1,1)

loUnZip = CREATEOBJECT("duzactxctrl.duzactxctrl.1")
loUnZip.UnZipSubOptions = 0
loUnZip.ZIPFile = "C:\TEST.ZIP"

_VFP.AUTOYIELD = .F.
loUnZip.ActionDZ = UNZIP_COUNTALLZIPMEMBERS

lnTotalFiles = loUnZip.ReturnCount

IF lnTotalFiles > 0
	DIMENSION laFiles(lnTotalFiles,1)

	FOR lnFile = 1 TO lnTotalFiles
		loUnZip.ActionDZ = UNZIP_GETNEXTZIPINFO
		laFiles[lnFile,1] = loUnZip.zi_FileName
	ENDFOR
ENDIF

_VFP.AUTOYIELD = .T.
Previous
Reply
Map
View

Click here to load this message in the networking platform