Window.GetTag
-------------

Queries tag for window.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [Window](component_Window.md) | [6.3](newinversion63.md) | ✅ Yes | ✅ Yes | ❌ No | ❌ No | ❌ No |

MBS( "Window.GetTag"; WindowRef ) 

**MBS**( **"Window.GetTag";** /\* Queries tag for window. \*/  
**$WindowRef**) /\* Window Reference is the unique OS level window ID. You can obtain this by using the [Window.FindByTitle](WindowFindByTitle.md) or [Window.FindByIndex](WindowFindByIndex.md) functions. Pass zero to access the frontmost window.e.g. 0 \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| WindowRef | Window Reference is the unique OS level window ID. You can obtain this by using the [Window.FindByTitle](WindowFindByTitle.md) or [Window.FindByIndex](WindowFindByIndex.md) functions. Pass zero to access the frontmost window. | 0 |

### Result

Returns text or error.

### Description

Queries tag for window.  
The MBS Plugin manages a list of open windows, so you can query tag value for a window.  
### See also

- [Window.FindByIndex](WindowFindByIndex.md)
- [Window.FindByTitle](WindowFindByTitle.md)
- [Window.GetTop](WindowGetTop.md)
- [Window.SetTag](WindowSetTag.md)

### Example Databases

- [Window/Schedule Moved Trigger](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Window/Schedule%20Moved%20Trigger.shtml#1ScriptAnchor_)

### Blog Entries

- [Script trigger for moving window](https://www.mbsplugins.de/archive/2022-10-07/Script_trigger_for_moving_wind/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin, version 6.3pr3](https://www.mbsplugins.de/archive/2016-06-19/MBS_FileMaker_Plugin_version_6/monkeybreadsoftware_blog_filemaker)

This function is free to use.

Created 10th June 2016 , last changed 10th June 2016

  
[Window.GetMinWidth](WindowGetMinWidth.md) - [Window.GetTitle](WindowGetTitle.md)

[HTML Version](WindowGetTag.shtml)