Xbase++
Xbase++
Replace Deprecated GetExpirationDt
Shows how to replace the deprecated GetExpirationDt method.Chilkat Xbase++ Downloads
LOCAL oCache
LOCAL cCache_item_key
LOCAL oDt1
LOCAL oDt2
oCache := CreateObject("Chilkat.Cache")
// ....
// ....
cCache_item_key := "xyz"
// Instead of this:
oDt1 := oCache:GetExpirationDt(cCache_item_key)
oDt1:destroy()
// Do this:
oDt2 := CreateObject("Chilkat.CkDateTime")
oDt2:SetFromRfc822(oCache:GetExpirationStr(cCache_item_key))
oCache:destroy()
oDt2:destroy()