Lianja
Lianja
Transition from Cert.GetValidFromDt to Cert.ValidFromStr
Provides instructions for replacing deprecated GetValidFromDt method calls with ValidFromStr.Chilkat Lianja Downloads
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