Visual FoxPro
Visual FoxPro
Transition from Cert.GetValidFromDt to Cert.ValidFromStr
Provides instructions for replacing deprecated GetValidFromDt method calls with ValidFromStr.Chilkat Visual FoxPro Downloads
LOCAL loCert
LOCAL loCkdt1
LOCAL loCkdt2
loCert = CreateObject('Chilkat.Cert')
* ------------------------------------------------------------------------
* The GetValidFromDt method is deprecated:
loCkdt1 = loCert.GetValidFromDt()
IF (loCert.LastMethodSuccess = 0) THEN
? loCert.LastErrorText
RELEASE loCert
CANCEL
ENDIF
* ...
* ...
RELEASE loCkdt1
* ------------------------------------------------------------------------
* Do the equivalent using the ValidFromStr property
loCkdt2 = CreateObject('Chilkat.CkDateTime')
loCkdt2.SetFromRfc822(loCert.ValidFromStr)
RELEASE loCert
RELEASE loCkdt2