Object Reference : Object View and Procedure Reference : Table
  
Table
 
clearhist
comment
copyrange
copytable
deletecol
deleterow
display
displayname
insertcol
insertrow
label
olepush
save
setattr
setfillcolor
setfont
setformat
setheight
setindent
setjust
setlines
setmerge
setprefix
setsuffix
settextcolor
setwidth
sheet
sort
table
title
Table object. Formatted two-dimensional table for output display.
Table Declaration
freeze freeze tabular view of object.
table create table object.
To declare a table object, use the keyword table, followed by an optional row and column dimension, and then the object name:
table onelement
table(10,5) outtable
If no dimension is provided, the table will contain a single element.
Alternatively, you may declare a table using an assignment statement. The new table will be sized and initialized, accordingly:
table newtable=outtable
Lastly, you may use the freeze command to create tables from tabular views of other objects:
freeze(newtab) ser1.freq
Table Views
display display table, graph, or spool in object window.
label label information for the table object.
sheet view the table.
table view the table.
Table Procs
clearhist clear the contents of the history attribute.
comment adds or removes a comment in a table cell.
copyrange copies a portion of the table to another table.
copytable copies the entire table to another table.
deletecol Remove columns from a table.
deleterow Remove rows from a table.
displayname set display name.
insertcol insert additional columns into a table.
insertrow insert additional rows into a table.
olepush push updates to OLE linked objects in open applications .
save save table as CSV, tab-delimited ASCII text, RTF, HTML, Enhanced Metafile, PDF, or LaTeX file on disk.
setattr set the value of an object attribute .
setfillcolor set the fill (background) color of a set of table cells.
setfont set the font for the text in a set of table cells.
setformat set the display format of a set of table cells.
setheight set the row height in a set of table cells.
setindent set the indentation for a set of table cells.
setjust set the justification for a set of table cells.
setlines set the line characteristics and borders for a set of table cells.
setmerge merge or unmerge a set of table cells.
setprefix set the cell prefix string for the specified table cells .
setsuffix set the cell suffix string for the specified table cells .
settextcolor set the text color in a set of table cells.
setwidth set the column width for a set of table cells.
sort sort the rows of the specified selection of cells .
title assign or change the title of a table.
Table Data Members
String values
@attr(“arg”) string containing the value of the arg attribute, where the argument is specified as a quoted string.
@description string containing the Table object’s description (if available).
@detailedtype string with the object type: “TABLE”.
@displayname string containing the Table object’s display name. If the Table has no display name set, the name is returned.
@name string containing the Table object’s name.
@remarks string containing the Table object’s remarks (if available).
@source string containing the Table object’s source (if available).
@title string containing the Table object’s title (if available).
@type string with the object type: “TABLE”.
@units string containing the Table object’s units description (if available).
@updatetime string representation of the time and date at which the Table was last updated.
Scalar values
(i,j) the (i,j)-th element of the table, formatted as a string.
@cols number of columns in the table.
@rows number of rows in the table.
Table Commands
setcell format and fill in a table cell.
setcolwidth set width of a table column.
setline place a horizontal line in table.
tabplace insert a table into another table.
Note that with the exception of tabplace, these commands are supported primarily for backward compatiblity. There is a more extensive set of table procs for working with and customizing tables. See “Table Procs”.
Table Examples
table(5,5) mytable
%strval = mytable(2,3)
mytable(4,4) = "R2"
mytable(4,5) = @str(eq1.@r2)