revZipExtractItemToVariable multiple times to same variable
Posted: Sun May 26, 2013 4:24 pm
Something I can't fathom out is happening with revZipExtractItemToVariable when I try to extract twice to the same variable (using 6.0.1).
The first time works fine, but the second time returns the error "ziperr,illegal variable":
However, if I use two variables as follows there's no error:
Note that deleting the variable after the first use of revZipExtractItemToVariable doesn't seem to help.
If you're wondering, I want to do this so that I can loop through the items in a zip archive, getting the content of each item into a variable, then doing things with that content.
Can anyone explain what's going on (or suggest a good workround)?
Bill
The first time works fine, but the second time returns the error "ziperr,illegal variable":
Code: Select all
revZipExtractItemToVariable myArchive, itemInMyArchive1, myVariable
// Do some stuff here
revZipExtractItemToVariable myArchive, itemInMyArchive2, myVariable
Code: Select all
revZipExtractItemToVariable myArchive, itemInMyArchive1, myVariable1
// Do some stuff here
revZipExtractItemToVariable myArchive, itemInMyArchive2, myVariable2
If you're wondering, I want to do this so that I can loop through the items in a zip archive, getting the content of each item into a variable, then doing things with that content.
Can anyone explain what's going on (or suggest a good workround)?
Bill