Sample code for 30+ languages & platforms
Lianja

Transition from Zip.AppendSb to Zip.AddSb

Provides instructions for replacing deprecated AppendSb method calls with AddSb.

Chilkat Lianja Downloads

Lianja
llSuccess = .F.

loZip = createobject("CkZip")

// ...
// ...
lcPathInZip = "example.txt"
loSb = createobject("CkStringBuilder")
loSb.Append("This is a test")
lcCharset = "utf-8"

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

llSuccess = loZip.AppendSb(lcPathInZip,loSb,lcCharset)

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

llSuccess = loZip.AddSb(lcPathInZip,loSb,lcCharset)


release loZip
release loSb