Thread: DropDown Menus
View Single Post
06-11-14, 07:41 PM   #14
TULOA
A Wyrmkin Dreamwalker
 
TULOA's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2009
Posts: 50
Originally Posted by Phanx View Post
Without seeing your code and the actual error message, it's impossible to say for sure, but I'd put money on the problem being bad scoping in your code, eg:

Code:
print(SomeVar) -- error because SomeVar is not defined yet
local SomeVar = "cats"
or:

Code:
do
    local SomeVar = "cats"
end
print(SomeVar) -- error because SomeVar only exists in the do-end block above, not here
No Phanx I didnt go through 4 years of college to fall to bad scope issues. And menuList wasnt defined by me through it. Its something you pass to the EasyMenu function as a table that should be named menuList in teh internal functions and yet manages to lose it after its run. If it was a code error it would error on login.