RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TObjectStack.Pop Method

Removes and returns the object at the top of the stack.

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

Call Pop to retrieve an object from the stack. Pop removes the next object from the stack (that is, the last object added), then returns a reference to the deleted object. 

To access the stack without removing an object, call Peek

 

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