table.GetFirstKey
From GMod Wiki
Revision as of 21:33, 16 March 2010 by Bobthe2lol (Talk | contribs)
| 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: |
|
| BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=Table.GetFirstKey]Table.GetFirstKey [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
| Description | Example use of table.GetFirstKey |
|---|---|
| Used on | |
| Code | local Table = {} Table["Testing"] = "1,2,3" Table["Testing2"] = "4,5,6" print(tostring(table.GetFirstKey(Table)) |
| Output | "Testing" |