OPTIONS "C_CALL"
LIBRARY rxunzip
ziperr = "SYNTAX"
zipheading = 1
DO
unzipopen("ZipHandle", "MyTest.zip")
unzipfinditem(ziphandle, "Count")
DO i = 1 TO count
unzipsetcurrentitem(ziphandle, "Info", i)
SAY "Unzipping..." info.0
unzipgetitem(ziphandle, "MyVar", "MEMORY")
SAY myvar
END
CATCH SYNTAX
CONDITION('M')
FINALLY
IF EXISTS("ZIPHANDLE") THEN unzipclose(ziphandle)
END
|