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