Xbase++ Requires Chilkat v11.0.0+
Xbase++
Transition from Email.GetAttachedMessage to Email.GetAttachedEmail
Provides instructions for replacing deprecated GetAttachedMessage method calls with GetAttachedEmail.Chilkat Xbase++ Downloads
LOCAL nSuccess
LOCAL oEmail
LOCAL nIndex
LOCAL oEmailObj
LOCAL oEmailOut
nSuccess := 0
oEmail := CreateObject("Chilkat.Email")
// ...
// ...
nIndex := 0
// ------------------------------------------------------------------------
// The GetAttachedMessage method is deprecated:
oEmailObj := oEmail:GetAttachedMessage(nIndex)
IF (oEmail:LastMethodSuccess == 0)
? oEmail:LastErrorText
oEmail:destroy()
RETURN
ENDIF
// ...
// ...
oEmailObj:destroy()
// ------------------------------------------------------------------------
// Do the equivalent using GetAttachedEmail.
// Your application creates a new, empty Email object which is passed
// in the last argument and filled upon success.
oEmailOut := CreateObject("Chilkat.Email")
nSuccess := oEmail:GetAttachedEmail(nIndex, oEmailOut)
IF (nSuccess == 0)
? oEmail:LastErrorText
oEmail:destroy()
oEmailOut:destroy()
RETURN
ENDIF
oEmail:destroy()
oEmailOut:destroy()