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

Transition from Cert.GetValidToDt to Cert.ValidToStr

Provides instructions for replacing deprecated GetValidToDt method calls with ValidToStr.

Chilkat Lianja Downloads

Lianja
loCert = createobject("CkCert")

//  ------------------------------------------------------------------------
//  The GetValidToDt method is deprecated:

loCkdt1 = loCert.GetValidToDt()
if (loCert.LastMethodSuccess = .F.) then
    ? loCert.LastErrorText
    release loCert
    return
endif

//  ...
//  ...

release loCkdt1

//  ------------------------------------------------------------------------
//  Do the equivalent using the ValidToStr property

loCkdt2 = createobject("CkDateTime")
loCkdt2.SetFromRfc822(loCert.ValidToStr)


release loCert
release loCkdt2