HTML_TABLE Procedure

Creates an HTML table.

Usage

Input Parameters

Keywords


NOTE: Whenever a specified attribute is not supported by a particular browser, the attribute is simply ignored by that browser.

Discussion

Example

HTML_OPEN, Title = 'PV-WAVE '+ 'HTML Output Example'

HTML_HEADING, 'Example HTML '+ 'output from PV-WAVE'

a = RANDOMN(seed, 100, 100)

b = RANDOMU(seed, 100, 100)

; Get some data.

table_info = FLTARR(2, 5)

table_info(0, *) = [MIN(a), $ MAX(a), AVG(a), MEDIAN(a), $ STDEV(a)]

table_info(1, *) = [MIN(b), $ MAX(b), AVG(b), MEDIAN(b), $ STDEV(b)]

; Build a variable containing the numbers.

table_text = STRTRIM $ (STRING(table_info), 2)

; The table contents needs to be text.

col_titles = ['Normal Distribution', $ 'Uniform Distribution']

row_titles = ['Minimum', 'Maximum', $ 'Mean', 'Median', $ 'Standard Deviation']

; Build arrays of row and column headings.

HTML_TABLE, table_text, $ RowLabels = row_titles, $ ColLabels = col_titles, $ Caption = 'Two Random ' +$ 'Number Sets', Border = 1

; Make the table with a caption and labels.

HTML_CLOSE

See Also





doc@boulder.vni.com
Copyright © 1999, Visual Numerics, Inc. All rights reserved.