Skip to content

TObjectStack.Peek

Look at the top object in the stack.

Declaration

Source position: contnrs.pp line 170

public 
function TObjectStack.Peek : TObject;

Description

Peek returns the top object of the stack, without removing it from the stack. If there are no more objects on the stack, Nil is returned.

Errors

None

See also

Name Description
TObjectStack.Push Push an object on the stack.
TObjectStack.Pop Pop the top object of the stack.