DataFlex
DataFlex
.Z File Compression
See more Zip Examples
Use LZW compression to create a .Z compressed file. Compresses any single file into a .Z format compressed file.(Chilkat's .Z compression functionality is included as part of the Chilkat Zip license.)
Chilkat DataFlex Downloads
Use ChilkatAx-win32.pkg
Procedure Test
Boolean iSuccess
Handle hoUc
String sTemp1
Move False To iSuccess
// This example assumes the Chilkat API to have been previously unlocked.
// See Global Unlock Sample for sample code.
Get Create (RefClass(cComChilkatUnixCompress)) To hoUc
If (Not(IsComObjectCreated(hoUc))) Begin
Send CreateComObject of hoUc
End
Get ComCompressFile Of hoUc "hamlet.xml" "hamlet.xml.Z" To iSuccess
If (iSuccess <> True) Begin
Get ComLastErrorText Of hoUc To sTemp1
Showln sTemp1
End
Else Begin
Showln "Success."
End
End_Procedure