NAME

tablelen - return the size of a table from an associated table-handle variable


SYNOPSIS

val = tablelen(table_handle)


DESCRIPTION

tablelen returns the size (length) of the table from the table_handle variable. table_handle is instantiated using the maketable scorefile command.


ARGUMENTS
table_handle
The table-handle identifier for the table.


RETURN VALUE

Returns to the script an integer value, the size of the table.


EXAMPLES
   table = maketable("literal", "nonorm", 0, 8.00, 8.02, 8.03, 8.05, 8.07)
   size = tablelen(table)

size will have the value 5, corresponding to the 5 elements of the table. This is very useful when a size argument of 0 is used for a maketable("literal", ...) table type.


SEE ALSO

maketable, modtable, makefilter, makeconverter, plottable, dumptable, tablelen, mul, div, sub, add, len