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