RWA_RADIO


Purpose

Defines a radio button. Appends the generated code to a string. Radio buttons operate in a similar way to checkboxes, but only one button in a group can be selected.

Syntax

RWA_RADIO(vString, Name, Value, Checked, aClass)

Parameters

vString A variable containing the string to which the generated code is appended. On return, the variable contains the modified string. If the string does not exist, it is created.

Name Name of the button. All radio buttons in a group have the same name.

Value Value for the button. When the form is submitted, the value returned for a group of radio buttons is the value associated with the selected button.

Checked A BooleanClosed A data type that can take only the values TRUE and FALSE. In RealWeb TRUE is defined as any non-zero integer, and FALSE as 0 or a null string. Any other values generate a run time error.  operator that determines the initial state of the button (selected or not selected). Only one button in a group can be selected.

aClass A dynamic array that can contain the following elements:

Element No.

Attribute

Description

1

CLASS

The name of a tag class defined in a CSSClosed Cascading Style Sheet - a mechanism by which the presentation of an HTML page can be separated from the content. A style sheet can be used to determine the appearance of one or more HTML pages.  stylesheet.

Attributes defined in the aClass parameter are applied to the INPUT tag.

For information about using aClass, see The aClass Parameter.

Dependencies

Requires a previous call to RW_START_HTML_FORM.