ISLabel.ShortName

Description

The short name of the specified label control.

Syntax

object.ShortName

Part Attribute Type Description
object Required
The object always implements the ISLabel interface
Restriction: This property is readonly.

Return Value

string

Example

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

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
 
Profile.MsgBox(aLabelInfo) 
Note: This macro should be executed in any event handler of the form control.

In Profile Client v8 on User Interface Short Name 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 > Name.

Version information

Added in v7.8.0