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