Sample code for 30+ languages & platforms
VBScript

Transition from Zip.GetEntryByIndex to Zip.EntryAt

Provides instructions for replacing deprecated GetEntryByIndex method calls with EntryAt.

Chilkat VBScript Downloads

VBScript
Dim fso, outFile
Set fso = CreateObject("Scripting.FileSystemObject")
'Create a Unicode (utf-16) output text file.
Set outFile = fso.CreateTextFile("output.txt", True, True)

success = 0

set zip = CreateObject("Chilkat.Zip")

' ...
' ...
index = 15

' ------------------------------------------------------------------------
' The GetEntryByIndex method is deprecated:

' entryObj is a Chilkat.ZipEntry
Set entryObj = zip.GetEntryByIndex(index)
If (zip.LastMethodSuccess = 0) Then
    outFile.WriteLine(zip.LastErrorText)
    WScript.Quit
End If

' ...
' ...

' ------------------------------------------------------------------------
' Do the equivalent using EntryAt.
' Your application creates a new, empty ZipEntry object which is passed 
' in the last argument and filled upon success.

set ze = CreateObject("Chilkat.ZipEntry")
success = zip.EntryAt(index,ze)
If (success = 0) Then
    outFile.WriteLine(zip.LastErrorText)
    WScript.Quit
End If


outFile.Close