Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Call this service to extract a file into a variable. The value of Index can the value returned by FindFile or by FindFile or the same index used to reference the file in the value returned by GetFileListby GetFileList.

Examples

Code Block
// Extract all files and save to a table (assuming table was previously opened)
hZip = SRP_Zip("Open", "C:\MyFile.zip")
If hZip EQ 0 then
   Call Msg(@Window, SRP_Zip("GetLastError"))
end else
   FileList = SRP_Zip("GetFileList", hZip)
   NumFiles = DCount(FileList, @FM)
   For i = 1 to NumFiles
       Data = SRP_Zip("ExtractFile", hZip, i)
       Write Data to hTable, FileList<i> then NULL
   Next i
   SRP_Zip("Close", hZip)
end

...