ISLabel.TypeName

Description

This function returns the name of the label control type.

Control Type in Object Inspector Type Name
TButton TICDOButton
TBevel TICDOBevel
TCheckBox TICDOChechBox
TListControl TICDOListControl
TComboBox TICDOComboBox
TEdit TICDOEdit
TImage TICDOImage
TLabel TICDOLabel
TLinker TICDOLinker
TMemo TICDOMemo
TRadioButton TICDORadioButton
TReport TICDOReport
TRichEdit TICDORichEdit
TISliceImageEditor TISliceImageEditor
TShape TICDOShape
TWebBrowser TICDOWebBrowser

Syntax

object.TypeName()

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

Return Value

string

Returns the name of the label control type.

Example

Display some information about the specified label control, including the name of the label control type.

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 Type Name cannot be found.

Version information

Added in v7.8.0