ISControl.LinkCode

Description

This property contains the code of the selected entity for the link edit control or the text for controls of other types.

Syntax

object.LinkCode

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

Return Value

string

Example

Display some information about the specified control, including its link code.

Dim aControl
Dim aControlInfo

Set aControl = Form.Controls_("edtProvider")

aControlInfo =_
  "Caption: " & aControl.Caption & vbNewLine &_
  "TypeName: " & aControl.TypeName & vbNewLine &_   
  "ShortName: " & aControl.ShortName & vbNewLine &_
  "Link Code: " & aControl.LinkCode  
    
Profile.MsgBox(aControlInfo)  
Note: This macro should be executed in any event handler of the form control.

Version information

Added in v7.8.0