Tag

Applies to

All controls, user objects, and menus

Description

The Tag property can hold any text you want to associate with the control. It is up to you how you use that text.

Usage

In a painter

To specify a tag for a control:

  • Enter the desired text in the Tag field on the General page of the object's Properties view.

In scripts

The tag property takes a string value.

The following line uses the object's Tag property to set MicroHelp in an MDI frame (the code could be in a GetFocus event or, for a Menu object, the Selected event).

w_frame.SetMicroHelp(This.Tag)