table.name

Syntax

s = table.name(t)

Get the table name. The table name cannot be modified and is assigned when the table is created. A new table is created if a unique integer or string name is given as an argument. The table label can be modified, on the other hand (see table.label).

Returns:s - table name
Accepts:s - table name
Arguments:t - integer name, string name, or table pointer