![]() |
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
(DataFlex) 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.
Use ChilkatAx-win32.pkg Procedure Test Handle hoZip String sPathInZip Variant vSb Handle hoSb Boolean iSuccess String sCharset Boolean iSuccess Get Create (RefClass(cComChilkatZip)) To hoZip If (Not(IsComObjectCreated(hoZip))) Begin Send CreateComObject of hoZip End // ... // ... Move "example.txt" To sPathInZip Get Create (RefClass(cComChilkatStringBuilder)) To hoSb If (Not(IsComObjectCreated(hoSb))) Begin Send CreateComObject of hoSb End Get ComAppend Of hoSb "This is a test" To iSuccess Move "utf-8" To sCharset // ------------------------------------------------------------------------ // The AppendSb method is deprecated: Get pvComObject of hoSb to vSb Get ComAppendSb Of hoZip sPathInZip vSb sCharset To iSuccess // ------------------------------------------------------------------------ // For consistency, the name has changed to AddSb. Get pvComObject of hoSb to vSb Get ComAddSb Of hoZip sPathInZip vSb sCharset To iSuccess End_Procedure |
© 2000-2025 Chilkat Software, Inc. All Rights Reserved.