![]() |
Chilkat HOME Android™ AutoIt C C# C++ Chilkat2-Python CkPython Classic ASP DataFlex Delphi DLL Go Java Node.js Objective-C PHP Extension Perl PowerBuilder PowerShell PureBasic Ruby SQL Server Swift Tcl Unicode C Unicode C++ VB.NET VBScript Visual Basic 6.0 Visual FoxPro Xojo Plugin
(PowerBuilder) Transition from Zip.AppendSb to Zip.AddSbProvides instructions for replacing deprecated AppendSb method calls with AddSb. Note: This example requires Chilkat v11.0.0 or greater.
integer li_rc oleobject loo_Zip string ls_PathInZip oleobject loo_Sb string ls_Charset integer li_Success loo_Zip = create oleobject // Use "Chilkat_9_5_0.Zip" for versions of Chilkat < 10.0.0 li_rc = loo_Zip.ConnectToNewObject("Chilkat.Zip") if li_rc < 0 then destroy loo_Zip MessageBox("Error","Connecting to COM object failed") return end if // ... // ... ls_PathInZip = "example.txt" loo_Sb = create oleobject // Use "Chilkat_9_5_0.StringBuilder" for versions of Chilkat < 10.0.0 li_rc = loo_Sb.ConnectToNewObject("Chilkat.StringBuilder") loo_Sb.Append("This is a test") ls_Charset = "utf-8" // ------------------------------------------------------------------------ // The AppendSb method is deprecated: li_Success = loo_Zip.AppendSb(ls_PathInZip,loo_Sb,ls_Charset) // ------------------------------------------------------------------------ // For consistency, the name has changed to AddSb. li_Success = loo_Zip.AddSb(ls_PathInZip,loo_Sb,ls_Charset) destroy loo_Zip destroy loo_Sb |
© 2000-2025 Chilkat Software, Inc. All Rights Reserved.