RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TMenuStack.Peek Method

Returns a pointer to the next item in the list.

Pascal
function Peek: TCustomActionMenuBar;
C++
__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) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!