FrameScriptObject:GetName
Jump to navigation
Jump to search
Returns the object's global name.
name = FrameScriptObject:GetName()
Returns
- name
- string - The name of the frame. This is also a variable in the global namespace.
Example
This is the name param from CreateFrame. Returns nil for anonymous frames.
/dump CreateFrame("Frame", "SomeFrame"):GetName() -- "SomeFrame"
/dump CreateFrame("Frame"):GetName() -- nil
This is the name
attribute in XML.
<Frame name="HelloFrame"></Frame>
/dump HelloFrame:GetName() -- "HelloFrame"