Check Box

From BR Wiki
Revision as of 23:59, 5 April 2013 by Laura (talk | contribs) (Created page with "The Business Rules! '''Check Box''' or '''checkbox''' widget allows the users to choose a binary option. Checked or Not-Checked. Specify "row, col, CHECK cols [,Attribu...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

The Business Rules! Check Box or checkbox widget allows the users to choose a binary option. Checked or Not-Checked.

Specify "row, col, CHECK cols [,Attributes] [,Fkey] [,NOWAIT]": "[^]caption"

These work like Radio buttons, except they are not functionally grouped. In both control types, INPUT FIELDS reads checked or unchecked captions.

In the following example, two 8-column checkboxes are created. The loop keeps executing until Esc is pressed. Both checkboxes may be checked simultaneously. The appropriate FKey value is printed any time either of the checkboxes is checked or unchecked.

00100 let X$="one" : let Y$="two"
00200 PRINT FIELDS "5,1,C 20": "Press Esc to quit"
00300 do
00400    RINPUT FIELDS "1,1,CHECK 8,,10;2,1,CHECK 8,,11": X$,Y$
00500    PRINT FIELDS "4,1,N 2": FKEY
00600 loop WHILE FKEY~=99

Output