| **Navigation:**  [[abc library reference.htm|ABC Library Reference]] > PopupClass > PopupClass Methods >====== GetLastNumberSelection (get last menu item number selected) {{c6h0009.jpg|C6H0009.jpg}} ====== | [[getitems returns number of popup entries .htm|{{btn_prev_n.gif|Previous page}}]][[abc library reference.htm|{{btn_home_n.gif|Return to chapter overview}}]][[getlastselection return selected item .htm|{{btn_next_n.gif|Next page}}]] | | || **GetLastNumberSelection** {{blk2blue.jpg|blk2blue.jpg}} The **GetLastNumberSelection** method returns the numeric order of the last selected menu item. This is also the last number returned by the POPUP() function This method is equivalent to: **Return SELF.LastNumberSelection** **Return Data Type:     **USHORT **Implementation:** The ExecutePopup method (a PRIVATE method) sets the menu item number.