MenuItem.Tag

From Xojo Documentation

Revision as of 15:09, 21 July 2017 by PLefebvre (talk | contribs) (Example)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
You are currently browsing the old Xojo documentation site. Please visit the new Xojo documentation site!

Property (As Variant )
aMenuItem.Tag = newVariantValue
or
VariantValue = aMenuItem.Tag

Supported for all project types and targets.

A “hidden” value associated with the menu item.

Notes

The tag is accessible via code when the user chooses the menu item but, unlike the Text property, is not displayed in the menu. It works like the RowTag property of a PopupMenu control.

Example

This example is in the Open event of the main window.

EditFind.Tag = "Search"