Topics
All
MacOS
(Only)
Windows
(Only)
Linux
(Only, Not)
iOS
(Only, Not)
Components
Crossplatform Mac & Win
Server
Client
Old
Deprecated
Guides
Examples
Videos
New in version:
9.3
9.4
9.5
10.0
10.1
10.2
10.3
10.4
10.5
10.6
Statistic
FMM
Blog
UnZipFile.ItemFlag
Queries the flags for this item.
| Component | Version | macOS | Windows | Linux | Server | FileMaker iOS SDK |
| Compression | 3.4 | Yes | Yes | No | Yes | Yes |
MBS( "UnZipFile.ItemFlag"; Index ) More
Parameters
| Parameter | Description | Example |
|---|---|---|
| Index | Index of the item from 0 to UnZipFile.ItemCount-1. | $index |
Result
Returns number or error.
Description
Queries the flags for this item.The flag is a bit field with various values.
Last bit of the flag is encryption state: value is 1 (odd) for encrypted and 0 (even) for unencrypted value.
The bit values 2 and 4 define compression level between 0 to 9.
| Flag Value | Encryption | Compression Level |
| 0 | no | 6 |
| 1 | yes | 6 |
| 2 | no | 9 |
| 3 | yes | 9 |
| 4 | no | 2 |
| 5 | yes | 2 |
| 6 | no | 1 |
| 7 | yes | 1 |
Examples
Check compressed state:
Set Variable [$compressed; Value: MBS( "Math.BitwiseAND"; MBS( "UnZipFile.ItemFlag"; Index ); 1 ) = 1 ]
See also
Example Databases
Created 18th August 2014, last changed 31st August 2017
UnZipFile.ItemExternalFileAttributes - UnZipFile.ItemInternalFileAttributes
Feedback: Report problem or ask question.
Links
MBS FileMaker Plugins