ISEdit.Code

Description

The code of the selected lookup item. The property is not accessible in the Object Inspector.

Syntax

object.Code

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

Return Value

string

Example

Display some information about the specified edit control, including the code of the selected lookup item.

Dim aEdit
Dim aEditInfo

Set aEdit = Form.Controls_("edtInform")
aEditInfo =_
  "ShortName: " & aEdit.ShortName & vbNewLine &_
  "TypeName: " & aEdit.TypeName & vbNewLine &_
  "Code: " & aEdit.Code                    
  
Profile.MsgBox(aEditInfo)  
Note: This macro should be executed in any event handler of the form control.

Version information

Added in v7.8.0