Sample code for 30+ languages & platforms
Visual FoxPro

Transition from Zip.AppendSb to Zip.AddSb

Provides instructions for replacing deprecated AppendSb method calls with AddSb.

Chilkat Visual FoxPro Downloads

Visual FoxPro
LOCAL lnSuccess
LOCAL loZip
LOCAL lcPathInZip
LOCAL loSb
LOCAL lcCharset

lnSuccess = 0

loZip = CreateObject('Chilkat.Zip')

* ...
* ...
lcPathInZip = "example.txt"
loSb = CreateObject('Chilkat.StringBuilder')
loSb.Append("This is a test")
lcCharset = "utf-8"

* ------------------------------------------------------------------------
* The AppendSb method is deprecated:

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

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

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

RELEASE loZip
RELEASE loSb