I've been messing with this for hours and I can't seem to get this to work
for i=1, 10 do
local frame = "MyFrame"..i
frame:EnableMouseWheel(true)
end
and the error I get is
attempt to call method 'EnableMouseWheel' (a nil value)
but if I do
MyFrame1:EnableMouseWheel(true)
there's no problem what so ever and it works
is there anyway to use a variable as a frame name for the method?