Returns the integer value associated with a widget.
id = Frame:GetID()
- number - the value previously set using Frame:SetID(number) or <Frame id="number">; defaults to 0.
- 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,
ContainerFrame1is the bag frame nearest the bottom-right corner of the screen. However, its ID changes to indicate which bag it represents.