Sample code for 30+ languages & platforms
Classic ASP Requires Chilkat v11.0.0+

Transition from Zip.FirstMatchingEntry to Zip.EntryMatching

Provides instructions for replacing deprecated FirstMatchingEntry method calls with EntryMatching.

Chilkat Classic ASP Downloads

Classic ASP
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
<%
success = 0

set zip = Server.CreateObject("Chilkat.Zip")

'  ...
'  ...
pattern = "*.txt"

'  ------------------------------------------------------------------------
'  The FirstMatchingEntry method is deprecated:

' entryObj is a Chilkat.ZipEntry
Set entryObj = zip.FirstMatchingEntry(pattern)
If (zip.LastMethodSuccess = 0) Then
    Response.Write "<pre>" & Server.HTMLEncode( zip.LastErrorText) & "</pre>"
    Response.End
End If

'  ...
'  ...

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

set ze = Server.CreateObject("Chilkat.ZipEntry")
success = zip.EntryMatching(pattern,ze)
If (success = 0) Then
    Response.Write "<pre>" & Server.HTMLEncode( zip.LastErrorText) & "</pre>"
    Response.End
End If


%>
</body>
</html>