Difference between revisions of "Table.getn"

From GiderosMobile
m (Text replacement - "<source" to "<syntaxhighlight")
Line 8: Line 8:
 
'''[Deprecated in Lua 5.1, use # operator]'''
 
'''[Deprecated in Lua 5.1, use # operator]'''
  
<source lang="lua">
+
<syntaxhighlight lang="lua">
 
table.getn(table)
 
table.getn(table)
 
</source>
 
</source>

Revision as of 14:31, 13 July 2023

Available since: Gideros 2011.6
Class: table

Description

Returns the size of the table, or n field, or table.setn value, or 1 less first index with nil value.

[Deprecated in Lua 5.1, use # operator]

<syntaxhighlight lang="lua"> table.getn(table) </source>

Parameters

table: (any)