VBScript Requires Chilkat v11.0.0+
VBScript
Transition from Email.GetLinkedDomains to Email.LinkedDomains
Provides instructions for replacing deprecated GetLinkedDomains method calls with LinkedDomains. The code below uses the replacement API without constructing the deprecated returned array.Chilkat VBScript Downloads
Dim fso, outFile
Set fso = CreateObject("Scripting.FileSystemObject")
'Create a Unicode (utf-16) output text file.
Set outFile = fso.CreateTextFile("output.txt", True, True)
success = 0
set email = CreateObject("Chilkat.Email")
' ...
' ...
' Replace the deprecated GetLinkedDomains method using LinkedDomains.
' Your application creates a new, empty StringTable object which is passed
' in the last argument and filled upon success.
set st = CreateObject("Chilkat.StringTable")
success = email.LinkedDomains(st)
If (success = 0) Then
outFile.WriteLine(email.LastErrorText)
WScript.Quit
End If
outFile.Close