enums - Get value from ComboBox? -


i have in myform combobox (mycombobox ) enumtype myenumtype .

in modified method , want value.

i used code looklike:

if (mycombobox.enumtypevalue() == myenumtype::value1 ) { //action } 

or anothe way

if (mycombobox.enumtype(myenumtype::value1) ) { //action } 

in both cases can not take value.

what way? thanks, all!

enjoy!

to value of combobox use selection method,

if(mycombobox.selection() == myenumtype::value1) {    //action } 

Comments

Popular posts from this blog

How has firefox/gecko HTML+CSS rendering changed in version 38? -

javascript - Complex json ng-repeat -

jquery - Cloning of rows and columns from the old table into the new with colSpan and rowSpan -