DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

Is it possible to update dialog variables from a non-modal dialog box?

I would like to have a non-modal dialog box run a script when I hit a "Load" button.  Is this possible?  

 

Thanks,

BG103

0 Kudos
Message 1 of 2
(3,976 Views)

Hey BG103,

 

you can open a non modal SUD Dialog with the following exemplary code snippet:

 

Dim MyDlg
If Nothing is SudNonModalDlgLst("Dlg1") Then
  Set MyDlg = SudDlgCreate("Dlg1",CurrentScriptPath & "TestDialog.sud")
Else
  Set MyDlg = SudNonModalDlgLst("Dlg1")
End If
Call MyDlg.Show()

In this example I created a TestDialog.sud file with dialog "Dlg1".

In the SUD dialog you can create a button click event which runs ScriptStart function like this:

 

Sub Button1_EventClick(ByRef This) 
  call ScriptStart(CurrentScriptPath & "TestScript.vbs")
End Sub

Regards

Christian

Christian
CLA, CTA, CLED
0 Kudos
Message 2 of 2
(3,964 Views)