DIAdem Help

Property: ObjectCode for EditBox

  • Updated2024-09-12
  • 2 minute(s) read

Property: ObjectCode for EditBox

Specifies the unique name for a control in a user dialog box. Use this name to select a control in the dialog editor, to edit its properties and events. In scripts you also use the ObjectCode of a control to access the control.

Do not use the names of DIAdem variables or DIAdem functions as ObjectCode, otherwise you will no longer be able to use them in DIAdem.

Object.ObjectCode
ObjectEditBox
Object with this property
Object.ObjectCodeString with read access

In the following example, EditBox1 is the ObjectCode of an entry field:

EditBox1.Height = 20

The following example displays the unique names of all the controls:

Dim i
For i = 1 To Dialog.Controls.Count
  Call MsgBoxDisp("ObjectCode: " & Dialog.Controls(i).ObjectCode)
Next

Use

You can change this property on the Properties tab when you create user dialog boxes.
You can use this property in scripts during user dialog box runtime.