m
Move page script moved page API Region GetName to WoW:API Region GetName without leaving a redirect
No edit summary |
m (Move page script moved page API Region GetName to WoW:API Region GetName without leaving a redirect) |
||
| (4 intermediate revisions by 4 users not shown) | |||
| Line 1: | Line 1: | ||
{{widgetmethod|removed=1.10.0|replace=Moved to {{apiwidget|UIObject:GetName}}}} | |||
This function obtains the value of the current XML object. E.g. WorldFrame:GetName() returns "WorldFrame". | This function obtains the value of the current XML object. E.g. WorldFrame:GetName() returns "WorldFrame". | ||
local name = region:GetName() | |||
- | == Parameters == | ||
=== Returns === | |||
* name (string) - containing the name of the object | |||
: | == Example == | ||
local name = PlayerFrame:GetName() | |||
;Result | |||
; | |||
name = "PlayerFrame" | name = "PlayerFrame" | ||
== Details == | |||
Obtains the XML name of an object. Great for a lot of uses, like generic object handling functions. | |||
== Notes == | |||
{{ | * Moved in patch 1.10.0 from {{apiwidget|Region}} to {{apiwidget|UIObject:GetName}} | ||