ToolItem.Tag

From Xojo Documentation

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

Supported for all project types and targets.

A “hidden” value associated with the tool item.

Notes

The tag is accessible via code when the user chooses the tool item but, unlike the Caption property, is not displayed in the toolbar.

Example

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

Me.SaveButton.Tag = folderItemToSave