DIAdem Help

Method: GetControl for Dialog <NonModal>

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

Method: GetControl for Dialog <NonModal>

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

Set oControl = Object.GetControl(ObjectCode)
ObjectDialog <NonModal>
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 oMyDlg, oElement
Set oMyDlg = SudDlgCreate("Dialog1","Example.sud")
Set oElement = oMyDlg.GetControl("Text1")
oElement.ForeColor = RGB(255, 0, 0)