Quantcast
WoWInterface - View Single Post - Lua dynamic class name possible ?
View Single Post
03-04-15, 10:10 AM   #8
Phanx
Cat.
 
Phanx's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2006
Posts: 5,617
Also this part:

Code:
Imagine["TestFrame"..i] = CreateFrame("Frame",Imagine["TestFrame"..i],UIParent)
...performs a table lookup, finds no value (because the frame hasn't been created and assigned to that key in that table yet, and even if it had been, a table is not a valid value for use as a frame name) and results in passing nil to CreateFrame, so you should just do that directly:

Code:
Imagine["TestFrame"..i] = CreateFrame("Frame",nil,UIParent)
__________________
Retired author of too many addons.
Message me if you're interested in taking over one of my addons.
Donít message me about addon bugs or programming questions.
  Reply With Quote