table.GetFirstKey

From GMod Wiki

Revision as of 21:33, 16 March 2010 by Bobthe2lol (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Function
Syntax table.GetFirstKey( Table Table )
Where is this used?
Description:
Gets the first key in a table
Returns: Var
Part of Library: table
Realm: NewerShared.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=Table.GetFirstKey]Table.GetFirstKey [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



DescriptionExample use of table.GetFirstKey
Used onNewerShared.png
Code
 
local Table = {}
Table["Testing"] = "1,2,3"
Table["Testing2"] = "4,5,6"
print(tostring(table.GetFirstKey(Table))
 
Output"Testing"
Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox