Hi Denis,
check out Thread#
1257796, Message#
1260679>If the destination zip file and the files to zip are in the same folder, it sometimes works - but sometimes get the error 'Data type mismatch'. Very puzzling. If the destination file and the files to zip are in different folders, it never works!
>
>
>
>
>
>>Using vfpcompression.fll, it works hitchlessly using:
>>
>>SET LIBRARY TO "vfpcompression.fll"
>>resultx = ZipOpen('c:\zfolder\myzipfile.zip')
>>
>>but not when using a variable as in:
>>
>>SET LIBRARY TO 'vfpcompression.fll'
>>myzipfilex = 'c:\zfolder\myzipfile.zip"
>>resultx = ZipOpen(myzipfilex)
>>
>>I must be doing something wrong .. any clues, Denis
>
>Works for me, but you have a typo, an ending " instead of '.