Xbase++ Requires Chilkat v11.0.0+
Xbase++
Transition from Zip.GetEntryByIndex to Zip.EntryAt
Provides instructions for replacing deprecated GetEntryByIndex method calls with EntryAt.Chilkat Xbase++ Downloads
LOCAL nSuccess
LOCAL oZip
LOCAL nIndex
LOCAL oEntryObj
LOCAL oZe
nSuccess := 0
oZip := CreateObject("Chilkat.Zip")
// ...
// ...
nIndex := 15
// ------------------------------------------------------------------------
// The GetEntryByIndex method is deprecated:
oEntryObj := oZip:GetEntryByIndex(nIndex)
IF (oZip:LastMethodSuccess == 0)
? oZip:LastErrorText
oZip:destroy()
RETURN
ENDIF
// ...
// ...
oEntryObj:destroy()
// ------------------------------------------------------------------------
// Do the equivalent using EntryAt.
// 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:EntryAt(nIndex, oZe)
IF (nSuccess == 0)
? oZip:LastErrorText
oZip:destroy()
oZe:destroy()
RETURN
ENDIF
oZip:destroy()
oZe:destroy()