Sample code for 30+ languages & platforms
Visual Basic 6.0

Transition from MailMan.LoadXmlString to EmailBundle.LoadXmlString

Provides instructions for replacing deprecated LoadXmlString method calls with EmailBundle.LoadXmlString.

Chilkat Visual Basic 6.0 Downloads

Visual Basic 6.0
Dim success As Long
success = 0

Dim mailman As New ChilkatMailMan

' ...
' ...

Dim xmlBundleStr As String
xmlBundleStr = "..."

' ------------------------------------------------------------------------
' The LoadXmlString method is deprecated:

Dim bundleObj As ChilkatEmailBundle
Set bundleObj = mailman.LoadXmlString(xmlBundleStr)
If (mailman.LastMethodSuccess = 0) Then
    Debug.Print mailman.LastErrorText
    Exit Sub
End If

' ...
' ...

' ------------------------------------------------------------------------
' Do the equivalent using EmailBundle.LoadXmlString.

Dim bundle As New ChilkatEmailBundle
success = bundle.LoadXmlString(xmlBundleStr)
If (success = 0) Then
    Debug.Print bundle.LastErrorText
    Exit Sub
End If