Removes and returns the next item in the list.
function Pop: TCustomActionMenuBar;
__fastcall TCustomActionMenuBar Pop();
Call Pop to retrieve an item from the list. Pop removes the next item from the list, then returns a pointer to the deleted item.
Each TOrderedList descendant implements Pop to remove and return a specific item from the list. For example, TQueue returns the item that was added first, while TStack returns the item that was added last.
To access the list without removing an item, call Peek.
Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!