When I run this in version 4.5.0: on mouseUp
put "/var/www/htdocs/ug/testarchive.zip" into tobjpath revZipOpenArchive tobjpath, "write" put "1) " & the result & return after msg put "doodah" into tdataxxx put "mimetype" into tparamxxx revZipAddUncompressedItemWithData tobjpath, tparamxxx, tdataxxx put "2) " & the result & return after msg revZipCloseArchive tobjpath end mouseUp No archive is created and the message box ends up with this in it: 1) 2) ziperr,illegal variable The problem seems to be tdataxxx. If I comment out the line: # put "doodah" into tdataxxx the archive is created successfully containing a file called mimetype but which contains the literal string "tdataxxx" Can anyone shed any light on this? BTW revZipAddItemWithData behaves the same Martin Baxter _______________________________________________ use-livecode mailing list [email protected] Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
