Sample code for 30+ languages & platforms
Xbase++ Requires Chilkat v11.0.0+

Transition from Email.GetLinkedDomains to Email.LinkedDomains

Provides instructions for replacing deprecated GetLinkedDomains method calls with LinkedDomains.

Chilkat Xbase++ Downloads

Xbase++
LOCAL nSuccess
LOCAL oEmail
LOCAL oSa
LOCAL oSt

nSuccess := 0

oEmail := CreateObject("Chilkat.Email")

//  ...
//  ...

//  ------------------------------------------------------------------------
//  The GetLinkedDomains method is deprecated:

oSa := oEmail:GetLinkedDomains()
IF (oEmail:LastMethodSuccess == 0)
    ? oEmail:LastErrorText
    oEmail:destroy()
    RETURN
ENDIF

//  ...
//  ...

oSa:destroy()

//  ------------------------------------------------------------------------
//  Do the equivalent using LinkedDomains.
//  Your application creates a new, empty StringTable object which is passed 
//  in the last argument and filled upon success.

oSt := CreateObject("Chilkat.StringTable")
nSuccess := oEmail:LinkedDomains(oSt)
IF (nSuccess == 0)
    ? oEmail:LastErrorText
    oEmail:destroy()
    oSt:destroy()
    RETURN
ENDIF

oEmail:destroy()
oSt:destroy()