uttable.wbb - Create HTML Table from an Array
Syntax
CALL "uttable.wbb", caption$, options$, dat$[all], work$
Description
HTML tables are time consuming to create manually, in part because the markup tags are required for each cell. This high-level routine reduces the effort, if the data for the table can be stored in a 2-dimensional array.
Parameter |
Description |
---|---|
caption$ |
String variable that contains the table caption, if any. |
options$ |
String variable that contains the table options for the <table> tag. The most common option is "border", or "border=1". Table options are not consistent among browsers, so care must be taken when using them. |
dat$[all] |
Data to be converted to table cells. This must be a 2-dimensional array with columns as the first dimension and rows as the second. If row 0 exists, it is used for column headings; column 0 is similarly used for row headings. All other data is used as regular cells. |
work$ |
Returned as the HTML table definition. |