I have this situation which I didnt think well enough, and i woudl need to redo a lot of code or figure out some hacks possibly in future to get around this problem, unless i can somehow access the parent.
I have this:
Code: Select all
mytable = {
[1] = { 1, 2, 3},
[2] = { 4, 5, 6}
}
Problem is, that I am accessing function in way of:
And now after having wrote lot of code inside the myfunction using it based upon it receiving the table, i now suddenly realise I would actually need to know which number table it sent there.
Hence, is it possible to do something like:
Code: Select all
Function myfunction(table)
index = tablesindex(table)
and it would then return for example number 1 to "index" variable?