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

Transition from Zip.FirstMatchingEntry to Zip.EntryMatching

Provides instructions for replacing deprecated FirstMatchingEntry method calls with EntryMatching.

Chilkat Xbase++ Downloads

Xbase++
LOCAL nSuccess
LOCAL oZip
LOCAL cPattern
LOCAL oEntryObj
LOCAL oZe

nSuccess := 0

oZip := CreateObject("Chilkat.Zip")

//  ...
//  ...
cPattern := "*.txt"

//  ------------------------------------------------------------------------
//  The FirstMatchingEntry method is deprecated:

oEntryObj := oZip:FirstMatchingEntry(cPattern)
IF (oZip:LastMethodSuccess == 0)
    ? oZip:LastErrorText
    oZip:destroy()
    RETURN
ENDIF

//  ...
//  ...

oEntryObj:destroy()

//  ------------------------------------------------------------------------
//  Do the equivalent using EntryMatching.
//  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:EntryMatching(cPattern, oZe)
IF (nSuccess == 0)
    ? oZip:LastErrorText
    oZip:destroy()
    oZe:destroy()
    RETURN
ENDIF

oZip:destroy()
oZe:destroy()