Visual FoxPro
Visual FoxPro
Replace Deprecated GetExpirationDt
Shows how to replace the deprecated GetExpirationDt method.Chilkat Visual FoxPro Downloads
LOCAL loCache
LOCAL lcCache_item_key
LOCAL loDt1
LOCAL loDt2
loCache = CreateObject('Chilkat.Cache')
* ....
* ....
lcCache_item_key = "xyz"
* Instead of this:
loDt1 = loCache.GetExpirationDt(lcCache_item_key)
RELEASE loDt1
* Do this:
loDt2 = CreateObject('Chilkat.CkDateTime')
loDt2.SetFromRfc822(loCache.GetExpirationStr(lcCache_item_key))
RELEASE loCache
RELEASE loDt2