Xbase++ Requires Chilkat v11.0.0+
Xbase++
Transition from Email.GetDigest to Email.GetDigestEmail
Provides instructions for replacing deprecated GetDigest method calls with GetDigestEmail.Chilkat Xbase++ Downloads
LOCAL nSuccess
LOCAL oEmail
LOCAL nIndex
LOCAL oEmailObj
LOCAL oEmailOut
nSuccess := 0
oEmail := CreateObject("Chilkat.Email")
// ...
// ...
nIndex := 0
// ------------------------------------------------------------------------
// The GetDigest method is deprecated:
oEmailObj := oEmail:GetDigest(nIndex)
IF (oEmail:LastMethodSuccess == 0)
? oEmail:LastErrorText
oEmail:destroy()
RETURN
ENDIF
// ...
// ...
oEmailObj:destroy()
// ------------------------------------------------------------------------
// Do the equivalent using GetDigestEmail.
// 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:GetDigestEmail(nIndex, oEmailOut)
IF (nSuccess == 0)
? oEmail:LastErrorText
oEmail:destroy()
oEmailOut:destroy()
RETURN
ENDIF
oEmail:destroy()
oEmailOut:destroy()