(Visual Basic 6.0) Transition from Email.GetLinkedDomains to Email.LinkedDomains
Provides instructions for replacing deprecated GetLinkedDomains method calls with LinkedDomains. Note: This example requires Chilkat v11.0.0 or greater.
Dim email As New ChilkatEmail
' ...
' ...
' ------------------------------------------------------------------------
' The GetLinkedDomains method is deprecated:
Dim sa As CkStringArray
Set sa = email.GetLinkedDomains()
If (email.LastMethodSuccess = 0) Then
Debug.Print email.LastErrorText
Exit Sub
End If
' ...
' ...
' ------------------------------------------------------------------------
' Do the equivalent using LinkedDomains.
' Your application creates a new, empty StringTable object which is passed
' in the last argument and filled upon success.
Dim st As New ChilkatStringTable
Dim success As Long
success = email.LinkedDomains(st)
If (success = 0) Then
Debug.Print email.LastErrorText
Exit Sub
End If
|