View Single Post
11-10-15, 09:34 PM   #2
Phanx
Cat.
 
Phanx's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2006
Posts: 5,617
MMCBFrame.i

^ This is the equivalent of MMCBFrame["i"] where "i" is a string containing the letter "i". I think you meant to use this:

MMCBFrame[i]

^ where i is a variable containing the current iteration count of your for-loop.

Similarly this:

"MMCBButton..i"

... means that the actual name of your object is "MMCBButton..i". I think you meant to do this:

"MMCBButton"..i

... which appends the current value of the variable i to the string "MMCBButton", resulting in names like "MMCBButton3".
__________________
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