ibec_CompressVar

ibec_CompressVar compresses Value using the LZ77 algorithm.

Syntax

 function ibec_CompressVar(Value : variant; Options : string) : string;

Description

ibec_CompressVar compresses Value using the LZ77 algorithm and returns the string that represents a compressed content of Value.

Parameters

The Options parameter is reserved for future use.

Example

  execute ibeblock
  as
  begin
    -- Compressing
    MyVar = ibec_LoadFromFile('D:\Script.sql');
    MyVar = ibec_CompressVar(MyVar, '');
    -- Decompressing
    MyVar = ibec_DeCompressVar(MyVar, '');
    ibec_SaveToFile('D:\Script.copy.sql', MyVar, __stfOverwrite);
  end