Returns a pointer to the next item in the list.
function Peek: TCustomActionMenuBar;
__fastcall TCustomActionMenuBar Peek();
Call Peek to access the list without removing an item. Peek returns a pointer to the next item in the list.
Each TOrderedList descendant implements Peek to 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 remove an item from the list, call Pop.
Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!