IGI tells widgets apart by their label, so two buttons both called "Buy" would be the same button. Takes id (Any text that is different for each repeat - usually ToString of a loop counter).
id
String
For i = 0 To 4
igiPushID(ToString(i))
If igiButton("Buy") Then BuyItem(i)
igiPopID()
Next