Copyright 2008 Shoptalk Systems

TABLE #handle, arrayName()

Create a table object from the array named arrayName() and assign it to the variable #handle.

This object is useful for displaying tabular data from an array onto the web page by using the RENDER statement.

Example:

dim ticTacToe$(2, 2)
ticTacToe$(0, 0) = "X"
ticTacToe$(1, 1) = "X"
ticTacToe$(2, 2) = "X"
ticTacToe$(0, 1) = "O"
ticTacToe$(2, 0) = "O"
table #gameboard, ticTacToe$()
render #gameboard

TABLE object methods

#handle COLUMNNAMES(expr$) - Set the column names using a comma delimited string expression
#handle CAPTION(expr$) - Set the caption using expr$
#handle CSSCLASS(expr$) - Set the CSS class tag to expr$
#handle TRCLASS(expr$) - Set the CSS class tag for table rows to expr$
#handle TDCLASS(expr$) - Set the CSS class tag for row data items to expr$
#handle THCLASS(expr$) - Set the CSS class tag for header row items to expr$
#handle CAPTIONCLASS(expr$) - Set the CSS class tag for the table caption to expr$
#handle SETID(expr$) - Set the HTML id property to be the value of expr$
#handle ALLCLASS(expr$) - Set the CSS class tag for all of the properties of the table to expr$
#handle LINK(columnNameExpr$, "handler") - Make the items in a column into links using handler (either a sub or a branch label) when the user clicks
#handle ISNULL() - Returns zero (or false)
#handle DEBUG$() - Returns the string "Table"

See also: Using Tables for more in-depth information