table.GetKeys

From Garry's Mod
Revision as of 22:53, 30 July 2016 by Zerf (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
 table.GetKeys( )

Contents

Description

Returns all keys of a table.

Arguments

table tabl

The table to get keys of

Returns

table

Table of keys

Examples

Example

Example usage

local tabl = {
one = "A",
two = "B",
}
PrintTable( table.GetKeys( tabl ) )

Output:

1	=	one
2	=	two
Personal tools
Navigation