Visual FoxPro Requires Chilkat v11.0.0+
Visual FoxPro
Transition from Email.CreateReply to Email.ToReply
Provides instructions for replacing deprecated CreateReply method calls with ToReply.Chilkat Visual FoxPro Downloads
LOCAL lnSuccess
LOCAL loEmail
LOCAL loEmailObj
LOCAL loEmailOut
lnSuccess = 0
loEmail = CreateObject('Chilkat.Email')
* ...
* ...
* ------------------------------------------------------------------------
* The CreateReply method is deprecated:
loEmailObj = loEmail.CreateReply()
IF (loEmail.LastMethodSuccess = 0) THEN
? loEmail.LastErrorText
RELEASE loEmail
CANCEL
ENDIF
* ...
* ...
RELEASE loEmailObj
* ------------------------------------------------------------------------
* Do the equivalent using ToReply.
* Your application creates a new, empty Email object which is passed
* in the last argument and filled upon success.
loEmailOut = CreateObject('Chilkat.Email')
lnSuccess = loEmail.ToReply(loEmailOut)
IF (lnSuccess = 0) THEN
? loEmail.LastErrorText
RELEASE loEmail
RELEASE loEmailOut
CANCEL
ENDIF
RELEASE loEmail
RELEASE loEmailOut