Radio string

Greetings,
O E 10 > Windows. How do you get the string - label of a radio-set? The SCREEN-VALUE attribute is just the integer value of the option. I however require the label attribute. Do I have to do it long hand or is their an attribute I can call? I could get the SCREEN-VALUE the integer and then substring the radio-buttons attribute, though that is long hand.
Does Progress provide an attribute or method I can use?
TIA
 

jongpau

Member
Can't you just create the radio set as a character and then put the string values you need in the options instead of the integers that you have now?
 

nborshukov

New Member
I usually use next expression to obtain the radio-set label (if the delimier is default, i.e. ","(comma)):

entry(lookup(string(radio-set-1),radio-set-1:radio-buttons in frame {&frame-name}) - 1,radio-set-1:radio-buttons in frame {&frame-name})

where radio-set-1 is the name of your radio-set widget.
If you want to use the screen-value attribute, instead of
string(radio-set-1)
use
radio-set-1:screen-value
 
Top