(Visual FoxPro) Transition from Zip.AppendSb to Zip.AddSb
Provides instructions for replacing deprecated AppendSb method calls with AddSb. Note: This example requires Chilkat v11.0.0 or greater.
LOCAL loZip
LOCAL lcPathInZip
LOCAL loSb
LOCAL lcCharset
LOCAL lnSuccess
* For versions of Chilkat < 10.0.0, use CreateObject('Chilkat_9_5_0.Zip')
loZip = CreateObject('Chilkat.Zip')
* ...
* ...
lcPathInZip = "example.txt"
* For versions of Chilkat < 10.0.0, use CreateObject('Chilkat_9_5_0.StringBuilder')
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
|