UnZipFile.ItemComment
---------------------

Queries the file comment of the given item.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [Compression](component_Compression.md) | [3.4](newinversion34.md) | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |

MBS( "UnZipFile.ItemComment"; Index { ; Encoding } ) 

**MBS**( **"UnZipFile.ItemComment";** /\* Queries the file comment of the given item. \*/  
**$Index**; /\* Index of the item from 0 to [UnZipFile.ItemCount](UnZipFileItemCount.md)-1. \*/   
**$Encoding**) /\* Optional; The text encoding for result.   
Default is native.e.g. "UTF8" \*/ 

### Parameters

| Parameter | Description | Example | Flags |
|---|---|---|---|
| Index | Index of the item from 0 to [UnZipFile.ItemCount](UnZipFileItemCount.md)-1. | $index |  |
| Encoding | The text encoding for result.    Default is native.   Possible encoding names: ANSI, ISO-8859-1, Latin1, Mac, Native, UTF-8, DOS, Hex, Base64 or Windows. More listed in the [FAQ](https://www.monkeybreadsoftware.com/filemaker/faq.shtml). | "UTF8" | Optional |

### Result

Returns comment as text or error.

### Description

Queries the file comment of the given item.  
### See also

- [UnZipFile.GlobalComment](UnZipFileGlobalComment.md)
- [UnZipFile.ItemCount](UnZipFileItemCount.md)
- [UnZipFile.ItemName](UnZipFileItemName.md)

### Example Databases

- [Archives/Show Zip File Content](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Archives/Show%20Zip%20File%20Content.shtml#3ScriptAnchor_)

This function checks for a license.

Created 18th August 2014 , last changed 12nd November 2015

  
[UnZipFile.ItemCRC](UnZipFileItemCRC.md) - [UnZipFile.ItemCompressedSize](UnZipFileItemCompressedSize.md)

[HTML Version](UnZipFileItemComment.shtml)