WoW:API Region GetName: Difference between revisions
Jump to navigation
Jump to search
GetName -Documentation by Alex-
(Slightly changed the example to be more clear.) |
({{widgetmethod}}) |
||
| Line 1: | Line 1: | ||
{{widgetmethod}} | |||
<center>'''GetName''' ''-Documentation by [[user:AlexanderYoshi|Alex]]-''</center> | <center>'''GetName''' ''-Documentation by [[user:AlexanderYoshi|Alex]]-''</center> | ||
| Line 25: | Line 27: | ||
;''Description'' | ;''Description'' | ||
: Obtains the XML name of an object. Great for a lot of uses, like generic object handling functions. | : Obtains the XML name of an object. Great for a lot of uses, like generic object handling functions. | ||
Revision as of 12:56, 10 June 2006
← Widget API ← Region < GetName
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.