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 |
object.TypeName()
Part | Attribute | Type | Description |
---|---|---|---|
object |
Required | The object always implements the
ISLabel interface |
string
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)
In Profile Client v8 on User Interface Type Name cannot be found.