Sign in Join
FPDoc Onlineexperiment

TObjectStack.Peek function

Member of TObjectStackpublicIn unit Contnrs

Look at the top object in the stack.

Declaration

pascal
function Peek: TObject

Function result

The top object on the stack, or Nil if the stack is empty.

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

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.