Hi Zlodo
I don't have locals inside functions as each variable exists within its function.
It is each frame, button and function that are local; I have a few workarounds such as having frame and button names in a table, eg;
Lua Code:
local framesNbuttons = {frameA, frameB, buttonA, buttonB}
framesNbuttons.frameA = CreateFrame("Frame")
framesNbuttons.buttonA = CreateFrame("Button")
I was just wondering if there is a better way to approach this issue.
Further, could I do the same thing with functions?
Lua Code:
local functions = {functionA, functionB}
functions.functionsA = function runFunctionA ()
I have tried this with no success, yet I am not sure if this is a correct way of using functions in a table or not.