CLibrary.SetTag
---------------

Sets the tag value.

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

MBS( "CLibrary.SetTag"; LibraryRef; Value ) 

**MBS**( **"CLibrary.SetTag";** /\* Sets the tag value. \*/  
**$LibraryRef**; /\* The reference number for the library.e.g. $lib \*/   
**$Value**) /\* The new tag value.e.g. Get(RecordID) \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| LibraryRef | The reference number for the library. | $lib |
| 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 library here like a RecordID in FileMaker.  
### See also

- [CLibrary.GetTag](CLibraryGetTag.md)

### Release notes

- **Version 14.3**
    - Added [CFunction.GetTag](https://www.mbsplugins.eu/CFunctionGetTag.shtml), [CFunction.SetTag](https://www.mbsplugins.eu/CFunctionSetTag.shtml), [CLibrary.GetTag](https://www.mbsplugins.eu/CLibraryGetTag.shtml) and [CLibrary.SetTag](https://www.mbsplugins.eu/CLibrarySetTag.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 5th July 2024

  
[CLibrary.ReleaseAll](CLibraryReleaseAll.md) - [CLibrary.Symbols](CLibrarySymbols.md)

[HTML Version](CLibrarySetTag.shtml)