DesktopMenuItem.Tag

From Xojo Documentation

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

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

New in 2021r3

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 DesktopPopupMenu control.

Example

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

EditFind.Tag = "Search"