SQL.SetCommandTag
-----------------

Sets the tag for the command.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [SQL](component_SQL.md) | [6.4](newinversion64.md) | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |

MBS( "SQL.SetCommandTag"; Command; Tag ) 

**MBS**( **"SQL.SetCommandTag";** /\* Sets the tag for the command. \*/  
**$Command**; /\* The command reference number gained with [SQL.NewCommand](SQLNewCommand.md). \*/   
**$Tag**) /\* The new tag value. \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| Command | The command reference number gained with [SQL.NewCommand](SQLNewCommand.md). | $Command |
| Tag | The new tag value. |  |

### Result

Returns OK or error.

### Description

Sets the tag for the command.  
This is a value where you can associate any value with the command.  
### See also

- [SQL.GetCommandTag](SQLGetCommandTag.md)
- [SQL.NewCommand](SQLNewCommand.md)
- [SQL.SetCommandText](SQLSetCommandText.md)

### Blog Entries

- [MBS FileMaker Plugin, version 6.4pr7](https://www.mbsplugins.de/archive/2016-09-14/MBS_FileMaker_Plugin_version_6/monkeybreadsoftware_blog_filemaker)

This function is free to use.

Created 11st September 2016 , last changed 11st September 2016

  
[SQL.SetCommandOption](SQLSetCommandOption.md) - [SQL.SetCommandText](SQLSetCommandText.md)

[HTML Version](SQLSetCommandTag.shtml)