Chapter 10 385
Using Operator Interfaces
Common Tasks In Creating Operator Interfaces
Figure 10-20. Early Stage in the Dice Program
Create a menu to select one of these three functions to call.
7. Select
Data ⇒ Selection Control ⇒ Radio Buttons.
Radio Buttons is an object that outputs an enumerated value (the
Enum data type: a text string with an ordinal number associated to it)
from a user-defined list on its upper output pin. For example, if you
define the list as Monday, Tuesday, Wednesday, Thursday, and Friday,
the operator could select the day from a menu, and
Radio Buttons
would then output the day.
The first item in the list is assigned the ordinal position
0; the nth item in
the list is assigned ordinal position n
-1. For instance, Monday in the list
above has an ordinal position of
0, and Friday has an ordinal position of
4. The ordinal position appears on the lower output pin. Read the Help
entry in the object menu for a more detailed explanation.