Mutex.SetTag
------------

Sets the tag value.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [Mutex](component_Mutex.md) | [14.3](newinversion143.md) | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |

MBS( "Mutex.SetTag"; Mutex; Value ) 

**MBS**( **"Mutex.SetTag";** /\* Sets the tag value. \*/  
**$Mutex**; /\* The reference number of the mutex. \*/   
**$Value**) /\* The new tag value.e.g. Get(RecordID) \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| Mutex | The reference number of the mutex. | $mutex |
| Value | The new tag value. | Get(RecordID) |

### Result

Returns OK or error.

### Description

Sets the tag value.  
The tag value allows you to store any value related to the mutex here like a RecordID in FileMaker.  
### See also

- [Mutex.GetTag](MutexGetTag.md)

### Release notes

- **Version 14.3**
    - Added [Mutex.GetTag](https://www.mbsplugins.eu/MutexGetTag.shtml) and [Mutex.SetTag](https://www.mbsplugins.eu/MutexSetTag.shtml) functions.

### Blog Entries

- [MBS FileMaker Plugin 14.3 News](https://www.mbsplugins.de/archive/2024-07-17/MBS_FileMaker_Plugin_143_News/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin, version 14.3pr4](https://www.mbsplugins.de/archive/2024-06-19/MBS_FileMaker_Plugin_version_1/monkeybreadsoftware_blog_filemaker)

This function is free to use.

Created 19th June 2024 , last changed 19th June 2024

  
[Mutex.ReleaseAll](MutexReleaseAll.md) - [Mutex.TryLock](MutexTryLock.md)

[HTML Version](MutexSetTag.shtml)