WoW:API getglobal: Difference between revisions

no edit summary
(okay?)
 
No edit summary
Line 29: Line 29:
  i = some_dynamic_number;
  i = some_dynamic_number;
  local curFrame = getglobal("myFrame"..i)
  local curFrame = getglobal("myFrame"..i)
You can immitate getglobal() by using the following script:
_G = getfenv()        -- set _G to the global environment once at the beginning of your script
  ...
myvar = _G[globalName] -- this is what getglobal() does
Anonymous user