|
Post by toonces on Oct 5, 2006 1:16:45 GMT -5
I have a ZIP file that only contained one file, and when I executed this in my Delphi 5 program (with VCLZip version 3.05):
if not (VCLUnZip1.ExternalFileAttributes[faDirectory] = 1) then
I got an error message: "Index 16 is out of range".
I kept adding files to the ZIP file and retesting it. I kept getting the same message until I had 17 files in the ZIP.
Is this a bug?
|
|
|
Post by Kevin on Oct 23, 2006 20:11:10 GMT -5
Sorry, this one slipped past me. :-(
You are using the ExternalFileAttributes property incorrectly. It is an indexed property, so you would want to use it something like
if (VCLUnZip1.ExternalFileAttributes[x] and faDirectory = 1) then
Does that make sense?
Thanks
Kevin
|
|
|
Post by toonces on Oct 26, 2006 23:02:12 GMT -5
Kevin: Thanks. Duh! My bad. I'll fix my syntax. Not sure how I thought that existing syntax would work. mIKE
|
|