Visual FoxPro Requires Chilkat v11.0.0+
Visual FoxPro
Transition from Email.CreateForward to Email.ToForward
Provides instructions for replacing deprecated CreateForward method calls with ToForward.Chilkat Visual FoxPro Downloads
LOCAL lnSuccess
LOCAL loEmail
LOCAL loEmailObj
LOCAL loEmailOut
lnSuccess = 0
loEmail = CreateObject('Chilkat.Email')
* ...
* ...
* ------------------------------------------------------------------------
* The CreateForward method is deprecated:
loEmailObj = loEmail.CreateForward()
IF (loEmail.LastMethodSuccess = 0) THEN
? loEmail.LastErrorText
RELEASE loEmail
CANCEL
ENDIF
* ...
* ...
RELEASE loEmailObj
* ------------------------------------------------------------------------
* Do the equivalent using ToForward.
* 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.ToForward(loEmailOut)
IF (lnSuccess = 0) THEN
? loEmail.LastErrorText
RELEASE loEmail
RELEASE loEmailOut
CANCEL
ENDIF
RELEASE loEmail
RELEASE loEmailOut