Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

[ Image Removed |../../index.htm#lansa/ugubc_c10515.htm]
You are here:

...

A choice with text beside it. Radio buttons are combined to show a user a fixed set of choices from which only one can be selected.

...

    CHANGE     FIELD(#RADIO1 #RADIO2 #RADIO3
                 #RADIO4) TO(*NULL)
 
        CASE       OF_FIELD(#TAXRATE)
        WHEN       VALUE_IS('= 0')
        CHANGE     FIELD(#RADIO1) TO(*RADBUTTONSELECTED)
        WHEN       VALUE_IS('= 10')
        CHANGE     FIELD(#RADIO2) TO(*RADBUTTONSELECTED)
        WHEN       VALUE_IS('= 20')
        CHANGE     FIELD(#RADIO3) TO(*RADBUTTONSELECTED)
        WHEN       VALUE_IS('= 30')
        CHANGE     FIELD(#RADIO4) TO(*RADBUTTONSELECTED)
        ENDCASE
 
[ Image Removed |../../index.htm#lansa/ugubc_c10515.htm]