RW_LIST


Use of this API subroutine is now deprecated - it can still be used, but for new developments it is recommended that you use RW_SELECT_LIST for enhanced functionality.

Purpose

Generates a pull-down menu of choices.

Syntax

RW_LIST(Name, Style, Size, aValueText)

Parameters

Name A name, unique within the form, for the list.

Style If set to the string, 'multiple', more than one item may be selected by a user; otherwise, only one option can be selected at a time.

Size Specifies the number of list items that are visible in the list's window. If the number of entries in the list exceeds Size, a vertical scroll bar will be presented on the list window. If Size is set to '0' or '1', the list window will sized for one item only, but when the down-arrow icon is selected a drop-down list containing the complete list will be displayed.

aValueText A dynamic array, with one attribute for each list item. Each attribute can contain up to three values:

Dependencies

Requires a previous call to RW_START_FORM.

Remarks

The subroutine that processes the submitted form can retrieve the user's selection(s) by calling RW_GET_PARAM and specifying the name of the list as the parameter name.

Go to top button