Sample code for 30+ languages & platforms
Visual FoxPro Requires Chilkat v11.0.0+

Transition from Email.GetDt to Email.EmailDateStr

Provides instructions for replacing deprecated GetDt method calls with EmailDateStr.

Chilkat Visual FoxPro Downloads

Visual FoxPro
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