RW_MAKE_TABLE


Purpose

Creates and populates a table. Outputs directly to RealWeb's RWC.OUTBUF buffer.

Syntax

RW_MAKE_TABLE(aHeadings, aData, aDataFormat, aClass, Control)

Parameters

aHeadings A in which each element is a column heading for the table.

aData A of cell values for multiple rows of the table. Rows are separated by attribute marks, individual cells within a row are separated by value marks.

aDataFormat A in which each element specifies a tag class, defined in a stylesheet, to be applied to the corresponding column of the table. The styles are not applied to the header row.

Note

If required, additional formatting can be applied to a column by replacing the class name with a list of parameters in the same format as in the aClass parameter of the RWS_TABLE_DATA routine. However, that you must use value marks instead of attribute marks to separate these parameters.

aClass A of parameters that can alter the appearance of the table.

Element No.

Attribute

Description

1

CLASS

The name of a tag class defined in a stylesheet.

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

For information about using aClass, see The aClass Parameter.

Control Specifies how the table should be populated as follows:

RWD_ALL_ROWS or an empty string
The table will include all table rows.

RWD_IGNORE_EMPTY_ROWS
The table will ignore empty rows.