G.KeyValuesToTablePreserveOrder
From GMod Wiki
Revision as of 13:50, 19 August 2011 by TheFreeman193 (Talk | contribs)
Function | |
Syntax |
KeyValuesToTablePreserveOrder( String text (key-values) ) Where is this used? |
Description: | |
Like KeyValuesToTable, but returns a table of tables, each holding one key and it's associated value. | |
Returns: | Table |
Part of Library: | Global Functions |
Realm: | |
BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=G.KeyValuesToTablePreserveOrder]G.KeyValuesToTablePreserveOrder [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Example
Additional Notes
- All keys are transformed into lowercase.
- This method of data storage is now considered deprecated. It is recommended to use GLON. GLON can encode/decode all types of data and does not return keys as lowercase. Unfortunately, the encoded data is no longer human-readable, but this only means the files can't be edited externally - it is much more efficient in all other manners. Remember to use require("glon").