Sample code for 30+ languages & platforms
Lianja

Transition from Email.CreateForward to Email.ToForward

Provides instructions for replacing deprecated CreateForward method calls with ToForward.

Chilkat Lianja Downloads

Lianja
llSuccess = .F.

loEmail = createobject("CkEmail")

// ...
// ...

// ------------------------------------------------------------------------
// The CreateForward method is deprecated:

loEmailObj = loEmail.CreateForward()
if (loEmail.LastMethodSuccess = .F.) then
    ? loEmail.LastErrorText
    release loEmail
    return
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("CkEmail")
llSuccess = loEmail.ToForward(loEmailOut)
if (llSuccess = .F.) then
    ? loEmail.LastErrorText
    release loEmail
    release loEmailOut
    return
endif



release loEmail
release loEmailOut