AutoIt
AutoIt
Transition from Zip.FirstMatchingEntry to Zip.EntryMatching
Provides instructions for replacing deprecated FirstMatchingEntry method calls with EntryMatching.Chilkat AutoIt Downloads
Local $bSuccess = False
$oZip = ObjCreate("Chilkat.Zip")
; ...
; ...
Local $sPattern = "*.txt"
; ------------------------------------------------------------------------
; The FirstMatchingEntry method is deprecated:
Local $oEntryObj = $oZip.FirstMatchingEntry($sPattern)
If ($oZip.LastMethodSuccess = False) Then
ConsoleWrite($oZip.LastErrorText & @CRLF)
Exit
EndIf
; ...
; ...
; ------------------------------------------------------------------------
; 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 = ObjCreate("Chilkat.ZipEntry")
$bSuccess = $oZip.EntryMatching($sPattern,$oZe)
If ($bSuccess = False) Then
ConsoleWrite($oZip.LastErrorText & @CRLF)
Exit
EndIf