(Visual FoxPro) Transition from Cert.GetValidFromDt to Cert.ValidFromStr
Provides instructions for replacing deprecated GetValidFromDt method calls with ValidFromStr. Note: This example requires Chilkat v11.0.0 or greater.
LOCAL loCert
LOCAL loCkdt1
LOCAL loCkdt2
* For versions of Chilkat < 10.0.0, use CreateObject('Chilkat_9_5_0.Cert')
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
* For versions of Chilkat < 10.0.0, use CreateObject('Chilkat_9_5_0.CkDateTime')
loCkdt2 = CreateObject('Chilkat.CkDateTime')
loCkdt2.SetFromRfc822(loCert.ValidFromStr)
RELEASE loCert
RELEASE loCkdt2
|