Sample code for 30+ languages & platforms
Visual FoxPro

Transition from Email.FindIssuer to Cert.GetIssuer

Provides instructions for replacing deprecated FindIssuer method calls with Cert.GetIssuer.

Chilkat Visual FoxPro Downloads

Visual FoxPro
LOCAL lnSuccess
LOCAL loEmail
LOCAL loCert
LOCAL loCertObj
LOCAL loIssuerCert

lnSuccess = 0

loEmail = CreateObject('Chilkat.Email')
loCert = CreateObject('Chilkat.Cert')

* ...
* ...

* ------------------------------------------------------------------------
* The FindIssuer method is deprecated:

loCertObj = loEmail.FindIssuer(loCert)
IF (loEmail.LastMethodSuccess = 0) THEN
    ? loEmail.LastErrorText
    RELEASE loEmail
    RELEASE loCert
    CANCEL
ENDIF

* ...
* ...

RELEASE loCertObj

* ------------------------------------------------------------------------
* Do the equivalent using Cert.GetIssuer.
* Your application creates a new, empty Cert object which is passed 
* in the last argument and filled upon success.

loIssuerCert = CreateObject('Chilkat.Cert')
lnSuccess = loCert.GetIssuer(loIssuerCert)
IF (lnSuccess = 0) THEN
    ? loEmail.LastErrorText
    RELEASE loEmail
    RELEASE loCert
    RELEASE loIssuerCert
    CANCEL
ENDIF

RELEASE loEmail
RELEASE loCert
RELEASE loIssuerCert