Sample code for 30+ languages & platforms
Visual FoxPro Requires Chilkat v11.0.0+

Transition from Cert.GetValidToDt to Cert.ValidToStr

Provides instructions for replacing deprecated GetValidToDt method calls with ValidToStr.

Chilkat Visual FoxPro Downloads

Visual FoxPro
LOCAL loCert
LOCAL loCkdt1
LOCAL loCkdt2

loCert = CreateObject('Chilkat.Cert')

*  ------------------------------------------------------------------------
*  The GetValidToDt method is deprecated:

loCkdt1 = loCert.GetValidToDt()
IF (loCert.LastMethodSuccess = 0) THEN
    ? loCert.LastErrorText
    RELEASE loCert
    CANCEL
ENDIF

*  ...
*  ...

RELEASE loCkdt1

*  ------------------------------------------------------------------------
*  Do the equivalent using the ValidToStr property

loCkdt2 = CreateObject('Chilkat.CkDateTime')
loCkdt2.SetFromRfc822(loCert.ValidToStr)

RELEASE loCert
RELEASE loCkdt2