radio buttons

jmac12

Member
I've got a radio set its of int type (dont ask y someone did this god knows) and the options are Current(1) Last (2) Effective Dates bettween (3). I'm trying to output the which one is used but if i do screen-value i just get the number not the label e.g. 3 instead of Effective Dates. Is there any way to get the label out so i dont have to do some more code?

I'm using open edge 10.2b
 
if the widget variable is rb (radio button), you can use the attribute RADIO-BUTTONS to retrieve the label:
label = entry(lookup(rb:screen-value,rb:radio-buttons) * 2 - 1, rb:radio-buttons).
 
cheers that did the trick. Though wasnt sure what the * 2 was about i did it like this:

chrTest = string(entry(lookup(rsPrice:screen-value,rsPrice:radio-buttons,",") - 1, rsPrice:radio-buttons)).
 
Back
Top