Sample code for 30+ languages & platforms
Tcl

Transition from Zip.AppendSb to Zip.AddSb

Provides instructions for replacing deprecated AppendSb method calls with AddSb.

Chilkat Tcl Downloads

Tcl

load ./chilkat.dll

set success 0

set zip [new_CkZip]

# ...
# ...
set pathInZip "example.txt"
set sb [new_CkStringBuilder]

CkStringBuilder_Append $sb "This is a test"
set charset "utf-8"

# ------------------------------------------------------------------------
# The AppendSb method is deprecated:

set success [CkZip_AppendSb $zip $pathInZip $sb $charset]

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

set success [CkZip_AddSb $zip $pathInZip $sb $charset]

delete_CkZip $zip
delete_CkStringBuilder $sb