RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TObjectStack.Peek Method

Returns a reference to the top of the stack.

Pascal
function Peek: TObject;
C++
__fastcall TObject * Peek();

Call Peek to access the stack without removing an object. Peek returns a reference to the next object in the stack (that is, the last object added). 

To remove an object from the stack, call Pop

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!