MenuItem.Tag
From Xojo Documentation
Property (As Variant )
aMenuItem.Tag = newVariantValue
or
VariantValue = aMenuItem.Tag
Supported for all project types and targets.
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"