Components All New MacOS Windows Linux iOS
Examples Mac & Win Server Client Guides Statistic FMM Blog Deprecated Old

Window.SetTag

Sets tag for window.

Component Version macOS Windows Linux Server iOS SDK
Window 6.3 ✅ Yes ✅ Yes ❌ No ❌ No ❌ No
MBS( "Window.SetTag"; WindowRef { ; Tag } )   More

Parameters

Parameter Description Example Flags
WindowRef Window Reference is the unique OS level window ID. You can obtain this by using the Window.FindByTitle or Window.FindByIndex functions. Pass zero to access the frontmost window. 0
Tag The new tag value.
Empty text if not provided.
Optional

Result

Returns OK or error.

Description

Sets tag for window.
The MBS Plugin manages a list of open windows, so you can set tag value for a window.
Please be aware that referencing windows just by name is not good as window names may not be unique.
Use Window.Current to get ID for current window. Or use function Window.SetCurrentTag to set tag of current window.

See also

Example Databases

Blog Entries

This function is free to use.

Created 10th June 2016, last changed 14th July 2022


Window.SetShowsToolbarButton - Window.SetTitle

💬 Ask a question or report a problem