Hello,
I would assume this is a really simple things, but Ive been googling and searching and trying, and I cant manage to get the value from my radio button control (if there is an API somewhere where I can find this and more Id love a link).
Ive made a form with a dialog pattern where I have the radio buttons populated from an enum, and then an okay/cancel button. When I press okay Id like to know what enum has been selected.
The best Ive been able to do at the moment is:
/info(int2Str(FormRadioButtonControl1.selection()));/
Which tells me what the number in the enum array it is. And I can probably use that (is there good way to get the actual enum value from the array number?), but I also assume there is a way to get the enum right away.
Another thing I noticed is that there are 4 values in my enum, and from my selection solution above the first one gives me 0, second 1, third 2, and the fourth give me 4. Why does it skip 3? Is this a problem, maybe selection is not doing what I think it is?
Thanks for help.