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

Transition from Email.CreateReply to Email.ToReply

Provides instructions for replacing deprecated CreateReply method calls with ToReply.

Chilkat Xbase++ Downloads

Xbase++
LOCAL nSuccess
LOCAL oEmail
LOCAL oEmailObj
LOCAL oEmailOut

nSuccess := 0

oEmail := CreateObject("Chilkat.Email")

//  ...
//  ...

//  ------------------------------------------------------------------------
//  The CreateReply method is deprecated:

oEmailObj := oEmail:CreateReply()
IF (oEmail:LastMethodSuccess == 0)
    ? oEmail:LastErrorText
    oEmail:destroy()
    RETURN
ENDIF

//  ...
//  ...

oEmailObj:destroy()

//  ------------------------------------------------------------------------
//  Do the equivalent using ToReply.
//  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:ToReply(oEmailOut)
IF (nSuccess == 0)
    ? oEmail:LastErrorText
    oEmail:destroy()
    oEmailOut:destroy()
    RETURN
ENDIF

oEmail:destroy()
oEmailOut:destroy()