API Frame GetID

Returns the integer value associated with a widget. id = Frame:GetID

Returns

 * id : - the value previously set using  or ; defaults to 0.

Details

 * Commonly used to distinguish between many similar widgets displaying different kinds of the same thing in a list, particularly when the widgets might be constructed in a different order than they appear.
 * For example,  is the bag frame nearest the bottom-right corner of the screen.  However, its ID changes to indicate which bag it represents.