DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

Checkbox If-Statement

Simple question here, but I can't seem to find the answer to it.  I want to simply run a section of code if a checkbox is checked, something like this:
 
If CheckBox1.Value = 1 Then
     'Code Here
End If
 
I want to place this code within a DIAdem autosequence, but the object is not being recognized within my script.  Any help would be appreciated
0 Kudos
Message 1 of 3
(3,901 Views)
Hello!
 
You have to understand that SUD dialog objects are not available in DIAdem scripts. If you want to use the state in a DIAdem script and not in the SUD script you have to connect the checkbox to a DIAdem variable or save the state in a variable.
 
Matthias
Matthias Alleweldt
Project Engineer / Projektingenieur
Twigeater?  
0 Kudos
Message 2 of 3
(3,879 Views)
Thanks, Matthias.  I thought this might be the case.
0 Kudos
Message 3 of 3
(3,874 Views)