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
Container.WriteArchive
Writes an archive with container value.
| Component | Version | macOS | Windows | Linux | Server | FileMaker iOS SDK |
| Container | 4.4 | Yes | Yes | Yes | Yes | Yes |
Parameters
| Parameter | Description | Example |
|---|---|---|
| Container | The container field or value to archive. | MyTable::MyContainer |
| Path | Native path to the archive file to use. | "C:\Benutzer\Christian\Desktop\test.txt" |
Result
Returns OK or error.
Description
Writes an archive with container value.This function allows you to archive whatever the container contains into a zip archive.
Please use Container.ReadArchive to read back.
This function requires a native path. Use Path.FileMakerPathToNativePath to convert a FileMaker path to a native path if required. If you like to have the user choose the path, you can use FileDialog functions.
For Server be aware that server has limited permissions and may not be able to access all files on a computer.
Examples
Reads an archive:
MBS("Container.ReadArchive"; "C:\Benutzer\Christian\Desktop\test.txt")
Writes an archive:
MBS("Container.WriteArchive"; MyTable::MyContainer; "C:\Benutzer\Christian\Desktop\test.txt")
See also
Example Databases
Blog Entries
Created 21st September 2014, last changed 21st October 2017
Container.Serialize - Container.WriteFile
Feedback: Report problem or ask question.
Links
MBS Xojo PDF Plugins