PowerBuilder
PowerBuilder
Transition from Email.GetLinkedDomains to Email.LinkedDomains
Provides instructions for replacing deprecated GetLinkedDomains method calls with LinkedDomains.Chilkat PowerBuilder Downloads
integer li_rc
integer li_Success
oleobject loo_Email
oleobject loo_Sa
oleobject loo_St
li_Success = 0
loo_Email = create oleobject
li_rc = loo_Email.ConnectToNewObject("Chilkat.Email")
if li_rc < 0 then
destroy loo_Email
MessageBox("Error","Connecting to COM object failed")
return
end if
// ...
// ...
// ------------------------------------------------------------------------
// The GetLinkedDomains method is deprecated:
loo_Sa = loo_Email.GetLinkedDomains()
if loo_Email.LastMethodSuccess = 0 then
Write-Debug loo_Email.LastErrorText
destroy loo_Email
return
end if
// ...
// ...
destroy loo_Sa
// ------------------------------------------------------------------------
// Do the equivalent using LinkedDomains.
// Your application creates a new, empty StringTable object which is passed
// in the last argument and filled upon success.
loo_St = create oleobject
li_rc = loo_St.ConnectToNewObject("Chilkat.StringTable")
li_Success = loo_Email.LinkedDomains(loo_St)
if li_Success = 0 then
Write-Debug loo_Email.LastErrorText
destroy loo_Email
destroy loo_St
return
end if
destroy loo_Email
destroy loo_St