WoW API: getglobal

From AddOn Studio
Revision as of 09:12, 10 September 2006 by WoWWiki>Progman (okay?)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

WoW API < getglobal


Get a global variable, from a string.

getglobal("globalName")


Parameters

Arguments

("globalName")
globalName
String - Name of the global you want to get.

Returns

The object from the given string.

Details

This function is used to get an object if you generate the name of the object manually in your script:

i = some_dynamic_number;
local curFrame = getglobal("myFrame"..i)