From Xojo Documentation

You are currently browsing the old Xojo documentation site. Please visit the new Xojo documentation site!

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

Supported for all project types and targets.

A “hidden” value associated with the menu item.


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.


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

EditFind.Tag = "Search"