
Click above to get retro games delivered to your door ever month!
X-Hacker.org- dBsee 4.6 - The Library - Norton Guide
[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
A group of Radio button controls is used when the field can assume only
limited range of mutually exclusive values (ex. a day of the week or a
month of the year).
Using a group of Radio buttons, instead to a simple Get, allows to obtain
the following advantages:
. To know exactly which values are accepted since they are the
ones shown on the screen.
No wrong values can be entered. In other words, only one of the
values displayed can be selected.
. The Radio button can be used to display coded information in
a leggible way. For example, we can describe the Radio button with
"September" and associate the value 9 to the field.
It is a good rule to use Radio buttons only if the range of acceptable
values for the symbol (field or variable) is not large. Using many Radio
Buttons can be inconvenient for both the programmer, who has to fit them
on the screen, and the user, who may find difficulty in finding the
desired value.
Another good rule is to include the Radio buttons associated to the same
symbol in a Box.
Among the properties of a Radio button, the Function on selection
parameter allows for specifying the function that is to be executed when
the Radio button is selected.
Example:
The invoice header file (InvHD) contains a field (TypeInv), in
which the type of invoice type is indicated: Proforma or Sales.
The project specifications set that Proforma invoices have a value of
1. Otherwise, the value is 2. Since the TypeInv field can only
assume two values, the best way to satisfy this need is to use two Radio
buttons. After having created the Radio buttons, the properties must be
set to the following values: invoice):
Origin type..............: Field
Radio button data origin.: TypeInv
Default value............:
Value....................: "1"
Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson