I have a table:
Table = {
button = {},
window = {},
label = {},
edit = {},
error = {}
}
How I can get keys and values of the table?
I tried to get as:
for key, value in ipairs(Table) do
for k, v in ipairs(key) do
print(k, v)
end
end
But it does't work.
ipairs
means(numerically) indexed pairs
– Hedwighedwiga