GZip Function Reference

sGZip

GZip Function Reference | Example

This function compresses a single file into a .gz file.

Declare Sub sGZip Lib "SapphireGZip.dll" (ByVal sFileIn As String, ByVal sFileOut As String, ByVal lDelete As Long, ByVal lLicence As Long)

Parameters

  sFileIn
    A string specifying the name of the file to compress.
  sFileOut
    A string specifying the name of the .gz file to create.
  lDelete
    A long flag specifying whether to overwrite the destination file if it already exists. 1 is overwrite, 0 is don't overwrite.
  lLicence
    A long specifying the licence number of the registered utility. If using in demo mode, enter 1234567890.

Return Values

  None