Xbase++ Requires Chilkat v11.0.0+
Xbase++
Transition from Zip.FirstEntry to Zip.EntryAt
Provides instructions for replacing deprecated FirstEntry method calls with EntryAt.Chilkat Xbase++ Downloads
LOCAL nSuccess
LOCAL oZip
LOCAL oEntryObj
LOCAL oZe
nSuccess := 0
oZip := CreateObject("Chilkat.Zip")
// ...
// ...
// ------------------------------------------------------------------------
// The FirstEntry method is deprecated:
oEntryObj := oZip:FirstEntry()
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.
// The 1st entry is at index 0.
oZe := CreateObject("Chilkat.ZipEntry")
nSuccess := oZip:EntryAt(0, oZe)
IF (nSuccess == 0)
? oZip:LastErrorText
oZip:destroy()
oZe:destroy()
RETURN
ENDIF
oZip:destroy()
oZe:destroy()