ISControl.Tag

Description

The tag of the specified control.

Syntax

object.Tag

Part Attribute Type Description
object Required
The object always implements the ISControl interface

Return Value

int

Example

Display some information about the specified control, including its tag.

Dim aControl
Dim aControlInfo

Set aControl = Form.Controls_("btnDemo")

aControlInfo =_
  "Caption: " & aControl.Caption & vbNewLine &_ 
  "Width: " & aControl.Width & vbNewLine &_
  "Height: " & aControl.Height & vbNewLine &_
  "Hint: " & aControl.Hint & vbNewLine &_
  "Left: " & aControl.Left & vbNewLine &_
  "Top: " & aControl.Top & vbNewLine &_
  "Tag: " & aControl.Tag & vbNewLine &_
  "ShortName: " & aControl.ShortName & vbNewLine &_
  "Enabled: " & aControl.Enabled & vbNewLine &_
  "TypeName: " & aControl.TypeName                
  
Profile.MsgBox(aControlInfo)  
Note: This macro should be executed in any event handler of the form control.

In Profile Client v8 on User Interface Tag can be found in Maintain > Templates > Health Record Collection Templates > Open the selected form template > Open form editor > Object Inspector > Select the control in the controls tree > Tag.

Version information

Added in v7.8.0