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