Archive.IsOpen
--------------

Queries whether an archive is currently open.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [Archive](component_Archive.md) | [15.0](newinversion150.md) | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |

MBS( "Archive.IsOpen" ) ### Parameters

none

### Result

Returns 1, 0 or error.

### Description

Queries whether an archive is currently open.  
Returns 1 if we have an open archive, e.g. if you called [Archive.Create](ArchiveCreate.md) before, but you haven't yet called [Archive.Close](ArchiveClose.md).  
### Examples

Check the function:

 Set Variable \[ $r1 ; Value: MBS ( "Archive.IsOpen" ) \]  
\# create in-memory archive   
Set Variable \[ $ro ; Value: MBS ( "[Archive.Create](ArchiveCreate.md)"; "zip"; "deflate"; "test.zip" ) \]  
\# check again -&gt; now true   
Set Variable \[ $r2 ; Value: MBS ( "Archive.IsOpen" ) \]  
\# close archive   
Set Variable \[ $rc ; Value: MBS ( "[Archive.Close](ArchiveClose.md)" ) \]  
\# check again -&gt; now false   
Set Variable \[ $r3 ; Value: MBS ( "Archive.IsOpen" ) \]  
\# shows 010, so the function works.   
Show Custom Dialog \[ "Results" ; $r1 &amp; $r2 &amp; $r3 \]  
### See also

- [Archive.Close](ArchiveClose.md)
- [Archive.Create](ArchiveCreate.md)

### Release notes

- **Version 15.0**
    - Added [Archive.IsOpen](https://www.mbsplugins.eu/ArchiveIsOpen.shtml) function.

### Blog Entries

- [New in MBS FileMaker Plugin 15.0](https://www.mbsplugins.de/archive/2025-01-21/New_in_MBS_FileMaker_Plugin_15/monkeybreadsoftware_blog_filemaker)
- [Neues MBS Plugin 15.0 für Claris FileMaker](https://www.mbsplugins.de/archive/2025-01-14/Neues_MBS_Plugin_150_für_Clar/monkeybreadsoftware_blog_filemaker)
- [MBS Plugin 15.0 for Claris FileMaker](https://www.mbsplugins.de/archive/2025-01-14/MBS_Plugin_150_for_Claris_File/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin, version 14.6pr3](https://www.mbsplugins.de/archive/2024-12-10/MBS_FileMaker_Plugin_version_1/monkeybreadsoftware_blog_filemaker)

This function is free to use.

Created 10th December 2024 , last changed 7th January 2025

  
[Archive.GZipDecompress](ArchiveGZipDecompress.md) - [Archive.LZ4Version](ArchiveLZ4Version.md)

[HTML Version](ArchiveIsOpen.shtml)