(Visual FoxPro) Transition from Email.GetDt to Email.EmailDateStr
Provides instructions for replacing deprecated GetDt method calls with EmailDateStr. Note: This example requires Chilkat v11.0.0 or greater.
LOCAL loEmail
LOCAL loDateTimeObj
LOCAL loDt
* For versions of Chilkat < 10.0.0, use CreateObject('Chilkat_9_5_0.Email')
loEmail = CreateObject('Chilkat.Email')
* ...
* ...
* ------------------------------------------------------------------------
* The GetDt method is deprecated:
loDateTimeObj = loEmail.GetDt()
IF (loEmail.LastMethodSuccess = 0) THEN
? loEmail.LastErrorText
RELEASE loEmail
CANCEL
ENDIF
* ...
* ...
RELEASE loDateTimeObj
* ------------------------------------------------------------------------
* Do the equivalent using EmailDateStr.
* For versions of Chilkat < 10.0.0, use CreateObject('Chilkat_9_5_0.CkDateTime')
loDt = CreateObject('Chilkat.CkDateTime')
loDt.SetFromRfc822(loEmail.EmailDateStr)
RELEASE loEmail
RELEASE loDt
|