DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

combobox

Solved!
Go to solution

That are only names of some function. You could call them as you like MyFoo, myFunction, Otto, ... but the names should tell you something about what they do.

 

Winfried

0 Kudos
Message 11 of 15
(836 Views)
Hi winner,
Thank you very much that seems to work :) , I just have a little problem, when I
choose MyValue1 I have to click on the button before the script runs, however
when I choose MyValue2, it automatically runs. how can i do so that
Myvalue2 runs also through the button?
Regards
0 Kudos
Message 12 of 15
(833 Views)

Hi amanda78

 

The reason is that the script is executed only whan selcetion changed.Because the selection is "1" it does not change. If you omit the following line the combobox is empty when the dialog box starts up, so it is changed when you select 1.

This.SelectionExt = 1 

 Winfried

0 Kudos
Message 13 of 15
(816 Views)

yes it seems to work 🙂 ! i have another problem, how can i do to make the dialog box close automatically after pressing a button please ? 

0 Kudos
Message 14 of 15
(810 Views)

Hi amanda78

 

in the layout mode select the ButtonType "Cancel" or "OK", Both close the dialog box but the call to returns differnt values for DlgState:

http://zone.ni.com/reference/en-XX/help/370858M-01/sudref/properties/sud_property_buttontype_tobtnrt...

Winfried

0 Kudos
Message 15 of 15
(805 Views)