Versions Compared

Key

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

...

Call this service to remove a file from a zip file. The value of Index can be the value returned by FindFile or by FindFile or the same index used to reference the file in the value returned by GetFileListby GetFileList.

Example

Code Block
// Remove a single known file
hZip = SRP_Zip_Open("C:\MyFile.zip")
If hZip EQ 0 then
   Call Msg(@Window, SRP_Zip("GetLastError"))
end else
   FileIndex = SRP_Zip("FindFile", hZip, "MyImage.BMP")
   If FileIndex NE 0 then
       Data = SRP_Zip("RemoveFile", hZip, FileIndex)
   end
   SRP_Zip("Close", hZip)
end

...