WoW:API Region GetName: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
No edit summary
 
(Slightly changed the example to be more clear.)
Line 18: Line 18:
----
----
;''Example''
;''Example''
  local name = getglobal("PlayerFrame"):GetName()
  local name = PlayerFrame:GetName()


;''Result''
;''Result''

Revision as of 00:32, 28 December 2005

GetName -Documentation by Alex-

This function obtains the value of the current XML object. E.g. WorldFrame:GetName() returns "WorldFrame".

object:GetName()

Arguments
none

Returns
name
name
String containing the name of the object

Example
local name = PlayerFrame:GetName()
Result
name = "PlayerFrame"

Description
Obtains the XML name of an object. Great for a lot of uses, like generic object handling functions.

Template:WoW API