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

Transition from Cert.GetValidFromDt to Cert.ValidFromStr

Provides instructions for replacing deprecated GetValidFromDt method calls with ValidFromStr.

Chilkat Lianja Downloads

Lianja
loCert = createobject("CkCert")

//  ------------------------------------------------------------------------
//  The GetValidFromDt method is deprecated:

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

//  ...
//  ...

release loCkdt1

//  ------------------------------------------------------------------------
//  Do the equivalent using the ValidFromStr property

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


release loCert
release loCkdt2