![]() |
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 MailMan.FetchMultiple to MailMan.FetchUidlSetProvides instructions for replacing deprecated FetchMultiple method calls with FetchUidlSet. Note: This example requires Chilkat v11.0.0 or greater.
Use ChilkatAx-win32.pkg Procedure Test Handle hoMailman Variant vSaUidls Handle hoSaUidls Boolean iSuccess Variant vStUidls Handle hoStUidls Variant vBundleObj Handle hoBundleObj Boolean iHeadersOnly Integer iNumBodyLines Variant vBundleOut Handle hoBundleOut Boolean iSuccess String sTemp1 Boolean bTemp1 Get Create (RefClass(cComChilkatMailMan)) To hoMailman If (Not(IsComObjectCreated(hoMailman))) Begin Send CreateComObject of hoMailman End // ... // ... Get Create (RefClass(cComCkStringArray)) To hoSaUidls If (Not(IsComObjectCreated(hoSaUidls))) Begin Send CreateComObject of hoSaUidls End Get ComAppend Of hoSaUidls "aaa" To iSuccess Get ComAppend Of hoSaUidls "bbb" To iSuccess Get ComAppend Of hoSaUidls "ccc" To iSuccess Get Create (RefClass(cComChilkatStringTable)) To hoStUidls If (Not(IsComObjectCreated(hoStUidls))) Begin Send CreateComObject of hoStUidls End Get ComAppend Of hoStUidls "aaa" To iSuccess Get ComAppend Of hoStUidls "bbb" To iSuccess Get ComAppend Of hoStUidls "ccc" To iSuccess // ------------------------------------------------------------------------ // The FetchMultiple method is deprecated: Get pvComObject of hoSaUidls to vSaUidls Get ComFetchMultiple Of hoMailman vSaUidls To vBundleObj If (IsComObject(vBundleObj)) Begin Get Create (RefClass(cComChilkatEmailBundle)) To hoBundleObj Set pvComObject Of hoBundleObj To vBundleObj End Get ComLastMethodSuccess Of hoMailman To bTemp1 If (bTemp1 = False) Begin Get ComLastErrorText Of hoMailman To sTemp1 Showln sTemp1 Procedure_Return End // ... // ... Send Destroy of hoBundleObj // ------------------------------------------------------------------------ // Do the equivalent using FetchUidlSet. // Your application creates a new, empty EmailBundle object which is passed // in the last argument and filled upon success. Move False To iHeadersOnly // Irrelevant because we are not downloading headers-only. Move 0 To iNumBodyLines Get Create (RefClass(cComChilkatEmailBundle)) To hoBundleOut If (Not(IsComObjectCreated(hoBundleOut))) Begin Send CreateComObject of hoBundleOut End Get pvComObject of hoStUidls to vStUidls Get pvComObject of hoBundleOut to vBundleOut Get ComFetchUidlSet Of hoMailman vStUidls iHeadersOnly iNumBodyLines vBundleOut To iSuccess If (iSuccess = False) Begin Get ComLastErrorText Of hoMailman To sTemp1 Showln sTemp1 Procedure_Return End End_Procedure |
© 2000-2025 Chilkat Software, Inc. All Rights Reserved.