Visual FoxPro Requires Chilkat v11.0.0+
Visual FoxPro
Transition from Zip.FirstEntry to Zip.EntryAt
Provides instructions for replacing deprecated FirstEntry method calls with EntryAt.Chilkat Visual FoxPro Downloads
LOCAL lnSuccess
LOCAL loZip
LOCAL loEntryObj
LOCAL loZe
lnSuccess = 0
loZip = CreateObject('Chilkat.Zip')
* ...
* ...
* ------------------------------------------------------------------------
* The FirstEntry method is deprecated:
loEntryObj = loZip.FirstEntry()
IF (loZip.LastMethodSuccess = 0) THEN
? loZip.LastErrorText
RELEASE loZip
CANCEL
ENDIF
* ...
* ...
RELEASE loEntryObj
* ------------------------------------------------------------------------
* Do the equivalent using EntryAt.
* Your application creates a new, empty ZipEntry object which is passed
* in the last argument and filled upon success.
* The 1st entry is at index 0.
loZe = CreateObject('Chilkat.ZipEntry')
lnSuccess = loZip.EntryAt(0,loZe)
IF (lnSuccess = 0) THEN
? loZip.LastErrorText
RELEASE loZip
RELEASE loZe
CANCEL
ENDIF
RELEASE loZip
RELEASE loZe