User Tools

Site Tools


radio_one_radio_button_.htm
Navigation:  Templates > Template Language Reference > #PROMPT Entry Types Alpha Listing >====== RADIO (one radio button) C6H0068.jpg ====== Previous pageReturn to chapter overviewNext page

RADIO

blk2blue.jpg

The RADIO type in a #PROMPT statement creates one RADIO button for the closest preceding OPTION prompt. When selected, the RADIO's string is placed in the OPTION's symbol unless the CHOICE attribute or VALUE is present. With the CHOICE attribute on the OPTION, the symbol receives the ordinal position number of the RADIO #PROMPT the programmer chooses from an OPTION set instead of the string text. With the VALUE attribute on the RADIO, the symbol receives value text.

Example:

#PROMPT('Ask for Choice',OPTION),%OptionSymbol

#PROMPT('Option One',RADIO)

#PROMPT('Option Two',RADIO)

#PROMPT('Option Three',RADIO)

#PROMPT('Ask for Another Choice',OPTION),%OptionSymbol2,CHOICE

#PROMPT('Option A',RADIO)                   #!%OptionSymbol2 receives 1

#PROMPT('Option B',RADIO)                   #!%OptionSymbol2 receives 2

#PROMPT('Option C',RADIO)                   #!%OptionSymbol2 receives 3

#PROMPT('Ask for Yet Another Choice',OPTION),%OptionSymbol3

#PROMPT('Option A',RADIO),VALUE('A')        #!%OptionSymbol3 receives A

#PROMPT('Option B',RADIO),VALUE('B')        #!%OptionSymbol3 receives B

#PROMPT('Option C',RADIO),VALUE('C')        #!%OptionSymbol3 receives C

radio_one_radio_button_.htm.txt · Last modified: 2021/04/15 15:57 (external edit)