Name
TableItems -- count all table items (V6.1)
Synopsis
c = TableItems(t)
Function
This function counts all items in the specified table. In contrast to ListItems() which only counts items at successive integer indices, TableItems() really counts all table elements, including those at string or floating point indices.

Inputs
t
table whose items are to be counted
Results
c
number of items in table
Example
Print(TableItems({x=5, y=6, [6]=1, 3, 4, 5, 6}))
This returns 7.

Show TOC