| **Navigation:**  [[abc library reference.htm|ABC Library Reference]] > PopupClass > PopupClass Methods >====== GetItems(returns number of popup entries) {{c6h0009.jpg|C6H0009.jpg}} ====== | [[getitemenabled return item status .htm|{{btn_prev_n.gif|Previous page}}]][[abc library reference.htm|{{btn_home_n.gif|Return to chapter overview}}]][[getlastnumberselection get last menu item number selected .htm|{{btn_next_n.gif|Next page}}]] | | || **GetItems(**//onlyitems//**)** {{blk2blue.jpg|blk2blue.jpg}} The **GetItems **method returns the number of entries that exist in the current active popup menu. The //onlyitems// parameter (DEFAULT=0) specifies that only the number of popup items is returned. If non-zero, **GetItems** also returns the depth (nested) levels of the popup menu. **Return Data Type:**     SHORT **Example:** **       IF Popup.****GetItems****() ! Only if there are previous items.** **          Popup.AddItem('-','Separator1',Popup.GetItems(),1)** **       END**