Shell.SetTag
------------

Sets tag value.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [Shell](component_Shell.md) | [13.0](newinversion130.md) | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ❌ No |

MBS( "Shell.SetTag"; ShellRef; Tag ) 

**MBS**( **"Shell.SetTag";** /\* Sets tag value. \*/  
**$ShellRef**; /\* The reference number from the shell.e.g. $shell \*/   
**$Tag**) /\* The new tag value. \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| ShellRef | The reference number from the shell. | $shell |
| Tag | The new tag value. |  |

### Result

Returns OK or error.

### Description

Sets tag value.  
You can use the tag value to associate whatever value you like with the shell object. Use [Shell.GetTag](ShellGetTag.md) function later to get back the value.  
### See also

- [Shell.GetTag](ShellGetTag.md)

### Release notes

- **Version 13.0**
    - Added [Shell.GetTag](https://www.mbsplugins.eu/ShellGetTag.shtml) and [Shell.SetTag](https://www.mbsplugins.eu/ShellSetTag.shtml) functions.

### Blog Entries

- [New in MBS FileMaker Plugin 13.0](https://www.mbsplugins.de/archive/2023-01-24/New_in_MBS_FileMaker_Plugin_13/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin, version 12.6pr1](https://www.mbsplugins.de/archive/2022-12-01/MBS_FileMaker_Plugin_version_1/monkeybreadsoftware_blog_filemaker)

This function is free to use.

Created 29th November 2022 , last changed 29th November 2022

  
[Shell.SetPassword](ShellSetPassword.md) - [Shell.SetUsername](ShellSetUsername.md)

[HTML Version](ShellSetTag.shtml)