| **Navigation:**  [[abc library reference.htm|ABC Library Reference]] > PopupClass > PopupClass Methods >====== SetIcon (set icon name for popup menu item) bmr C6H0009.BMP} ====== | [[save save a menu for restoration .htm|{{btn_prev_n.gif|Previous page}}]][[abc library reference.htm|{{btn_home_n.gif|Return to chapter overview}}]][[setitemcheck set toggle item status .htm|{{btn_next_n.gif|Next page}}]] | | || **SetIcon( **//name, iconname //**)** {{blk2blue.jpg|blk2blue.jpg}} | **SetIcon** | Sets the icon name of a popup menu item. | | //name// | A string constant, variable, EQUATE, or expression containing the menu item name. The AddItem, AddItemMimic, or AddMenu methods set the item name//.// | | //iconname// | A string constant, variable, EQUATE, or expression containing the name of the icon to attach to the menu item. | The **SetIcon **method sets the icon of a popup menu item. The AddItem or AddSubItem methods adds the menu item to the popup. **Implementation:** The //iconname //parameter accepts up to 255 characters. **Example:** **LOOP sm = 1 to RECORDS(QQ)** **  GET(QQ,sm)** **  pID = Popup.AddItem(CLIP(QQ.Item) & '  ',Clip(QQ.Item),pID,2)** **  Popup.****SetIcon****(pID,SELF.QkIcon)** **  Popup.AddItemEvent(pID,EVENT:NewSelection,QueryControl)** **  SELF.PopupList.PopupID = pID** **  SELF.PopupList.QueryName = QQ:Item** **  ADD(SELF.PopupList)** ** END**