EnumType Combobox value

i havea combobox named serviceShipment and enum type is B_SMAServiceShipment.

i need to compare it like

if(serviceShipment .valueStr() == B_SMAServiceShipment::B_Hand)

but it doen’t work… how can i do tihs?

Hi,

try with serviceShipment.enum2str(your enum)

regards,

Thomas

oops,

enum2str(service.your enum)

thnx bro

Use rather selection():

if (serviceShipment.selection() == B_SMAServiceShipment::B_Hand)