This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

dynamic name for a table
#7
If you get the result you want then it's fine. Not sure if you need another table (new_t['Tv_1'][1][1]), it might be enough just to do this:
Code:
for _,value in ipairs(name) do
  new_t[value] = entry
end

log(new_t['Tv_1'][1])
Reply


Messages In This Thread
dynamic name for a table - by CristianAgata - 21.12.2025, 11:05
RE: dynamic name for a table - by admin - 21.12.2025, 11:07
RE: dynamic name for a table - by admin - 21.12.2025, 11:37
RE: dynamic name for a table - by admin - Yesterday, 06:18

Forum Jump: