Sample code for 30+ languages & platforms
Xojo Plugin Requires Chilkat v11.0.0+

Transition from ZipEntry.NextEntry to ZipEntry.GetNext

Provides instructions for replacing deprecated NextEntry method calls with GetNext.

Chilkat Xojo Plugin Downloads

Xojo Plugin
Dim success As Boolean
success = False

//  ------------------------------------------------------------------------
//  The NextEntry method is deprecated.
//  See below or code showing how to rewrite using EntryAt/GetNext

Dim zip As New Chilkat.Zip

success = zip.OpenZip("qa_data/zips/xml_files.zip")
If (success <> True) Then
    System.DebugLog(zip.LastErrorText)
    Return
End If

Dim entry As Chilkat.ZipEntry
entry = zip.FirstEntry()
If (zip.LastMethodSuccess = False) Then
    System.DebugLog("This zip archive is empty.")
    Return
End If

Dim finished As Boolean
finished = False
While finished = False

    If (entry.IsDirectory = False) Then
        System.DebugLog(entry.FileName)
    Else
        System.DebugLog("(directory) " + entry.FileName)
    End If

    Dim next As Chilkat.ZipEntry
    next = entry.NextEntry()
    If (entry.LastMethodSuccess = False) Then
        finished = True
    End If

    entry = next
Wend

zip.CloseZip 

System.DebugLog("----")

//  ------------------------------------------------------------------------
//  Do the equivalent using EntryAt/GetNext.

success = zip.OpenZip("qa_data/zips/xml_files.zip")

Dim ze As New Chilkat.ZipEntry
success = zip.EntryAt(0,ze)

Dim entryValid As Boolean
entryValid = True
While entryValid = True

    If (ze.IsDirectory = False) Then
        System.DebugLog(ze.FileName)
    Else
        System.DebugLog("(directory) " + ze.FileName)
    End If

    entryValid = ze.GetNext()
Wend

zip.CloseZip