![]() |
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
(Visual Basic 6.0) Transition from MailMan.LoadXmlEmail to Email.SetFromXmlTextProvides instructions for replacing deprecated LoadXmlEmail method calls with Email.SetFromXmlText. Note: This example requires Chilkat v11.0.0 or greater.
Dim mailman As New ChilkatMailMan ' ... ' ... Dim xmlFilePath As String xmlFilePath = "c:/test/example.xml" ' ------------------------------------------------------------------------ ' The LoadXmlEmail method is deprecated: Dim emailObj As ChilkatEmail Set emailObj = mailman.LoadXmlEmail(xmlFilePath) If (mailman.LastMethodSuccess = 0) Then Debug.Print mailman.LastErrorText Exit Sub End If ' ... ' ... ' ------------------------------------------------------------------------ ' Do the equivalent using Email.SetFromXmlText. Dim sb As New ChilkatStringBuilder Dim success As Long success = sb.LoadFile(xmlFilePath,"utf-8") If (success = 0) Then Debug.Print sb.LastErrorText Exit Sub End If Dim email As New ChilkatEmail success = email.SetFromXmlText(sb.GetAsString()) If (success = 0) Then Debug.Print email.LastErrorText Exit Sub End If |
© 2000-2025 Chilkat Software, Inc. All Rights Reserved.