GetLastSelection (return selected item)

Top  Previous  Next

 

GetLastSelection

The GetLastSelection method returns the name of the last selected item.

The AddItem, AddItemMimic, AddMenu, or AddSubMenu method sets the item name.

Return Data Type: STRING

Example:

MenuChoices EQUATE('Fred|Barney|Wilma')  !declare menu definition string

CODE

PopupMgr.AddMenu(MenuChoices)           !add Popup menu

!program code

PopupMgr.Ask()                          !display menu

MESSAGE('Thank you for choosing '&PopupMgr.GetLastSelection)

See Also:     AddItem, AddItemMimic, AddMenu, AddSubMenu