Xbase++ Requires Chilkat v11.0.0+
Xbase++
Transition from Email.GetDt to Email.EmailDateStr
Provides instructions for replacing deprecated GetDt method calls with EmailDateStr.Chilkat Xbase++ Downloads
LOCAL oEmail
LOCAL oDateTimeObj
LOCAL oDt
oEmail := CreateObject("Chilkat.Email")
// ...
// ...
// ------------------------------------------------------------------------
// The GetDt method is deprecated:
oDateTimeObj := oEmail:GetDt()
IF (oEmail:LastMethodSuccess == 0)
? oEmail:LastErrorText
oEmail:destroy()
RETURN
ENDIF
// ...
// ...
oDateTimeObj:destroy()
// ------------------------------------------------------------------------
// Do the equivalent using EmailDateStr.
oDt := CreateObject("Chilkat.CkDateTime")
oDt:SetFromRfc822(oEmail:EmailDateStr)
oEmail:destroy()
oDt:destroy()