Xbase++ Requires Chilkat v11.0.0+
Xbase++
Transition from Zip.GetEntryByID to Zip.EntryById
Provides instructions for replacing deprecated GetEntryByID method calls with EntryById.Chilkat Xbase++ Downloads
LOCAL nSuccess
LOCAL oZip
LOCAL nId
LOCAL oEntryObj
LOCAL oZe
nSuccess := 0
oZip := CreateObject("Chilkat.Zip")
// ...
// ...
nId := 123
// ------------------------------------------------------------------------
// The GetEntryByID method is deprecated:
oEntryObj := oZip:GetEntryByID(nId)
IF (oZip:LastMethodSuccess == 0)
? oZip:LastErrorText
oZip:destroy()
RETURN
ENDIF
// ...
// ...
oEntryObj:destroy()
// ------------------------------------------------------------------------
// Do the equivalent using EntryById.
// Your application creates a new, empty ZipEntry object which is passed
// in the last argument and filled upon success.
oZe := CreateObject("Chilkat.ZipEntry")
nSuccess := oZip:EntryById(nId, oZe)
IF (nSuccess == 0)
? oZip:LastErrorText
oZip:destroy()
oZe:destroy()
RETURN
ENDIF
oZip:destroy()
oZe:destroy()