Visual FoxPro
Visual FoxPro
Transition from Email.GetDt to Email.EmailDateStr
Provides instructions for replacing deprecated GetDt method calls with EmailDateStr.Chilkat Visual FoxPro Downloads
LOCAL loEmail
LOCAL loDateTimeObj
LOCAL loDt
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.
loDt = CreateObject('Chilkat.CkDateTime')
loDt.SetFromRfc822(loEmail.EmailDateStr)
RELEASE loEmail
RELEASE loDt