UIObject:GetName()

From Wowpedia
Jump to: navigation, search

Returns the widget object's name.

name = UIObject:GetName()

Returns

name 
string? - Name of the widget object. Anonymous frames return nil

Example

Creates a frame named "SomeFrame" and prints it.

/dump CreateFrame("Frame", "SomeFrame"):GetName() -- "SomeFrame"

Attempts to print the name of an anonymous frame.

/dump CreateFrame("Frame"):GetName() -- nil

Patch changes

External links

References

  1. ^ Blizzard Entertainment slouken 2006-05-12. Re: Upcoming 1.11 Changes - Concise List. Archived from the original on 2006-05-12.