ISLabel.Tag

Description

The tag of the specified label control.

Syntax

object.Tag

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

Return Value

int

Example

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

Dim aLabel
Dim aLabelInfo

Set aLabel = Form.Controls_("Label1")

aLabelInfo =_
  "ShortName: " & aLabel.ShortName & vbNewLine &_
  "Caption: " & aLabel.Caption & vbNewLine &_
  "Type Name " & aLabel.TypeName & vbNewLine &_ 
  "Top: " & aLabel.Top & vbNewLine &_ 
  "Left: " & aLabel.Left & vbNewLine &_ 
  "Height: " & aLabel.Height & vbNewLine &_ 
  "Width: " & aLabel.Width & vbNewLine &_ 
  "Tag: " & aLabel.Tag
 
Profile.MsgBox(aLabelInfo)  
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 label control in the controls tree > Tag.

Version information

Added in v7.8.0