Retrieves the errors string of the last unzip operation
Usage:
uZipErr (object me)
Parameters:
None
Returns:
(string) - A detailed error reported by the zip API
Example:
-- ask end user for a zip file, then extract all file contents on to the same folder
xtRose = xtra("Rosetta").new( )
strPath = xtRose.dlgFile( 2, the moviepath, "untitled.zip", "Zip file (*.zip)|*.zip", "zip" )
If ( STRINGP(strPath) = TRUE ) Then
If ( xtRose.uZipOpen(strPath ) < 0 ) Then
alert xtRose.uZipErr( )
End If
End If
If ( xtRose.uZipIsOpen( ) = TRUE ) Then
xtRose.uZipClose( )
End If
Notes:
When the success code returned by the zip operation is -398, you can use uZipErr( ) to obtain a detailed information as to why the last operation failed.
See Also: