Visual FoxPro Requires Chilkat v11.0.0+
Visual FoxPro
Transition from Crypt2.GetDecryptCert to Crypt2.LastDecryptCert
Provides instructions for replacing deprecated GetDecryptCert method calls with LastDecryptCert.Chilkat Visual FoxPro Downloads
LOCAL lnSuccess
LOCAL loCrypt2
LOCAL loCertObj
LOCAL loCertOut
lnSuccess = 0
loCrypt2 = CreateObject('Chilkat.Crypt2')
* ...
* ...
* ------------------------------------------------------------------------
* The GetDecryptCert method is deprecated:
loCertObj = loCrypt2.GetDecryptCert()
IF (loCrypt2.LastMethodSuccess = 0) THEN
? loCrypt2.LastErrorText
RELEASE loCrypt2
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 = loCrypt2.LastDecryptCert(loCertOut)
IF (lnSuccess = 0) THEN
? loCrypt2.LastErrorText
RELEASE loCrypt2
RELEASE loCertOut
CANCEL
ENDIF
RELEASE loCrypt2
RELEASE loCertOut