I'd start by checking the return value from ZipFile().

Dan Covill

On 9/28/2010 7:28 PM, Sytze de Boer wrote:
> Can anyone spot the problem here?
> I end up with a zipfile with all the dbf files, but they're all zero bytes
>
>
> ** wildcards are not supported
> SET LIBRARY TO LOCFILE("vfpcompression.fll")
> =ZipOpen("MyZipFile.zip", "X:\", .F.)
>
> lcFile=SYS(2000,'C*.dbf')
> =ZipFile(lcFile, .F.)
>
> minstance=0
> DO WHILE .t.
>     lcFile=SYS(2000,'C*.dbf',minstance)
>     IF !EMPTY(lcFile)
>        =ZipFile(lcFile, .F.)
>     ELSE
>        EXIT
>     endif
>     minstance=minstance+1
> ENDDO
> *?ZipFile("*.fpt", .F.)
> =ZipClose()
> SET LIBRARY TO
>
>

_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: http://leafe.com/archives/byMID/profox/[email protected]
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to