Sample code for 30+ languages & platforms
Xbase++ Requires Chilkat v11.0.0+

Transition from Zip.AppendSb to Zip.AddSb

Provides instructions for replacing deprecated AppendSb method calls with AddSb.

Chilkat Xbase++ Downloads

Xbase++
LOCAL nSuccess
LOCAL oZip
LOCAL cPathInZip
LOCAL oSb
LOCAL cCharset

nSuccess := 0

oZip := CreateObject("Chilkat.Zip")

//  ...
//  ...
cPathInZip := "example.txt"
oSb := CreateObject("Chilkat.StringBuilder")
oSb:Append("This is a test")
cCharset := "utf-8"

//  ------------------------------------------------------------------------
//  The AppendSb method is deprecated:

nSuccess := oZip:AppendSb(cPathInZip, oSb, cCharset)

//  ------------------------------------------------------------------------
//  For consistency, the name has changed to AddSb.

nSuccess := oZip:AddSb(cPathInZip, oSb, cCharset)

oZip:destroy()
oSb:destroy()