Lianja
Lianja
Transition from Zip.GetEntryByName to Zip.EntryOf
Provides instructions for replacing deprecated GetEntryByName method calls with EntryOf.Chilkat Lianja Downloads
llSuccess = .F.
loZip = createobject("CkZip")
// ...
// ...
lcPathInZip = "example.txt"
// ------------------------------------------------------------------------
// The GetEntryByName method is deprecated:
loEntryObj = loZip.GetEntryByName(lcPathInZip)
if (loZip.LastMethodSuccess = .F.) then
? loZip.LastErrorText
release loZip
return
endif
// ...
// ...
release loEntryObj
// ------------------------------------------------------------------------
// Do the equivalent using EntryOf.
// Your application creates a new, empty ZipEntry object which is passed
// in the last argument and filled upon success.
loZe = createobject("CkZipEntry")
llSuccess = loZip.EntryOf(lcPathInZip,loZe)
if (llSuccess = .F.) then
? loZip.LastErrorText
release loZip
release loZe
return
endif
release loZip
release loZe