Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
SharedMemory.SetValue
Sets shared memory value.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
SharedMemory | 10.1 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ❌ No |
MBS( "SharedMemory.SetValue"; Name; Value ) More
Parameters
Parameter | Description | Example |
---|---|---|
Name | The name of the shared memory object. | "test" |
Value | The text value to store. e.g. an UUID to make it unique. |
"Hello World" |
Result
Returns OK or error.
Description
Sets shared memory value.MBS Plugin provides SharedMemory functions to store UTF-8 text in shared memory, so one process can set it and other can read it, e.g. two versions of FileMaker Pro or two server processes.
The value is lost when computer restarts, but stays when application quits.
On Windows the shared memory objects can't be accessed from another login session. To create a truly global one, we would need to run FileMaker as administrator and prefix the name with "Global\".
Examples
Store text in shared memory:
MBS( "SharedMemory.SetValue"; "test"; "Hello World" )
See also
Release notes
- Version 14.5
- Fixed SharedMemory.GetValue and SharedMemory.SetValue functions to work with empty values.
Blog Entries
- MBS FileMaker Plugin, version 14.5pr4
- Additional variable levels in FileMaker with MBS Plugin
- Variable Levels in FileMaker
- New in the MBS FileMaker Plugin 10.1
This function checks for a license.
Created 2nd February 2020, last changed 4th November 2024