Is it possible to retrieve the name of a table? For examples if I have:
[lua]local mytable = {[“printme”] = {1,2,3,4,5,}, [“printmeToo”]={1,2,3,}}[/lua]
How could I print the string printme and printmeToo to the console? [import]uid: 54716 topic_id: 11526 reply_id: 311526[/import]
Since you have stored the names of the tables in another table as key value pairs, you can simply print the list of table keys.
for k in pairs(mytable) do
print(k)
end
[import]uid: 846 topic_id: 11526 reply_id: 41910[/import]