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