Difference between revisions of "Table.getn"

From GiderosMobile
Line 1: Line 1:
 
__NOTOC__
 
__NOTOC__
<languages />
+
'''Available since:''' Gideros 2011.6<br/>
'''<translate>Available since</translate>:''' Gideros 2011.6<br/>
+
'''Class:''' [[Special:MyLanguage/table|table]]<br/>
'''<translate>Class</translate>:''' [[Special:MyLanguage/table|table]]<br/>
+
 
=== <translate>Description</translate> ===
+
=== Description ===
<translate>returns size of table, or n field, or table.setn value, or 1 less first index with nil value\n [Deprecated in Lua 5.1, use # operator]</translate>
+
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]'''
 +
 
 
<source lang="lua">
 
<source lang="lua">
table.getn(table)
+
table.getn(table)
 
</source>
 
</source>
=== <translate>Parameters</translate> ===
+
 
'''table''': (any) <translate></translate> <br/>
+
=== Parameters ===
 +
'''table''': (any) <br/>
  
 
{{Table}}
 
{{Table}}

Revision as of 01:40, 19 March 2021

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]

table.getn(table)

Parameters

table: (any)