GZip Function Reference

sGZip

GZip Function Reference | Example

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

<DllImport("SapphireGZip.dll")> _
Public Sub sGZip(ByVal sFileIn As String, ByVal sFileOut As String, ByVal lDelete As Integer, ByVal lLicence As Integer)
End Sub

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
    An integer flag specifying whether to overwrite the destination file if it already exists. 1 is overwrite, 0 is don't overwrite.
  lLicence
    An integer specifying the licence number of the registered utility. If using in demo mode, enter 1234567890.

Return Values

  None