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