![]() |
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.LoadXmlFile to EmailBundle.LoadXmlProvides instructions for replacing deprecated LoadXmlFile method calls with EmailBundle.LoadXml. Note: This example requires Chilkat v11.0.0 or greater.
Use ChilkatAx-win32.pkg Procedure Test Handle hoMailman String sFilePath Variant vBundleObj Handle hoBundleObj Handle hoBundle Boolean iSuccess String sTemp1 Boolean bTemp1 Get Create (RefClass(cComChilkatMailMan)) To hoMailman If (Not(IsComObjectCreated(hoMailman))) Begin Send CreateComObject of hoMailman End // ... // ... Move "c:/example/emailBundle.xml" To sFilePath // ------------------------------------------------------------------------ // The LoadXmlFile method is deprecated: Get ComLoadXmlFile Of hoMailman sFilePath 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 EmailBundle.LoadXml. Get Create (RefClass(cComChilkatEmailBundle)) To hoBundle If (Not(IsComObjectCreated(hoBundle))) Begin Send CreateComObject of hoBundle End Get ComLoadXml Of hoBundle sFilePath To iSuccess If (iSuccess = False) Begin Get ComLastErrorText Of hoBundle To sTemp1 Showln sTemp1 Procedure_Return End End_Procedure |
© 2000-2025 Chilkat Software, Inc. All Rights Reserved.