am working on a database mod and instead of assigning things to tables like so:
Code:
table1[1] = "something1"
table1[2] = "something2"
table1[3] = "something3"
table1[4] = "something4"
i want to assign it like this:
Code:
table1["string1"] = "something1"
table1["string2"] = "something2"
table1["string3"] = "something3"
table1["string4"] = "something4"
now the creation of the table is the easy part but what i was wondering is there anyway for me to get back a list of the strings that where used without keeping track of the list myself?
say with a function like this:
Code:
returntableplace(table1)
this would then return {"string1","string2","string3","string4"}