View Single Post
10-11-11, 04:07 PM   #11
Phanx
Cat.
 
Phanx's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2006
Posts: 5,617
If the frames are all named using the same pattern, and you want them all to be in the background, you could just loop through all possible frame names and check for existence:

Lua Code:
  1. for i = 1, 100 do
  2.      local f = _G["TellMeWhen_Group"..i]
  3.      if f then
  4.           f:SetFrameStrata("BACKGROUND")
  5.      end
  6. end
  Reply With Quote