Page tree
Skip to end of metadata
Go to start of metadata

Sample code:
Display file source:                 PUISAMPLES/QDDSSRC(CHECK001D)
RPGLE source:                      PUISAMPLES/QRPGLESRC(CHECK001R)

Radio buttons come in groups.  Only one radio button within a group can be selected, or checked, at any one time.  To create a radio button group, drag several radio button widgets onto the canvas.  Then, bind their radio button group properties to the same RPG variable.  A quick way to do this is to drag your mouse over the radio buttons to select them all at the same time.

This will allow you to use the Properties Window to modify the radio button group property on all the elements within the current selection.

Next, for each radio button, specify the value property.  The value will be placed into the RPG variable bound to the radio button group property, if that radio button is selected by the user at runtime.

To initialize a radio button to a checked state, make sure to fill the RPG variable bound to the radio button group property with a literal equivalent to the value property before showing the screen.

  • No labels