DIAdem Help

Method: GetControl for Dialog

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

Method: GetControl for Dialog

Returns the user dialog box control associated with a specific name.

Set oControl = Object.GetControl(ObjectCode)
ObjectDialog
Object with this method
ObjectCodeString
Specifies the unique name (ObjectCode) of the control.
oControlControl
Returned control

The following example changes the color of the Text1 control:

Dim oElement
oElement = Dialog.GetControl("Text1")
oElement.ForeColor = RGB(255, 0, 0)