Previous - uZipCount Section Home - Zip Compression Next - uZipItem


uZipGetItemName ( )

Obtains the relative path folder and file name of an individual file

Usage:

uZipGetItemName (object me, integer itemNum)

Parameters:

itemNum (integer) - an index to the file desired. The range is between 1 and uZipCount( )

Returns:

(string) - the zip relative path folder and file name

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
  xtRose.uZipOpen(strPath)
  Repeat with i = 1 to xtRose.uZipCount( )
    strFileName = xtRose.uZipGetItemName( i )
    xtRose.uZipItem( i, the moviepath & strFileName )
  end repeat
  xtRose.uZipClose( )
End If

Notes:


Previous - uZipCount Section Home - Zip Compression Next - uZipItem