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
Post a Comment