help files
Z505 | PasWiki | FUQ | Search | Main Docs | API Guide



[Overview][Constants][Types][Classes][Procedures and functions] Reference for unit 'contnrs' (#fcl)

TObjectStack.Push

Push an object on the stack.

Declaration

Source position: contnrs.pp line 158

public function TObjectStack.Push(

  AObject: TObject

):TObject;

Arguments

AObject

  

The object instance to push on the stack.

Function result

The element pushed on the stack.

Description

Push pushes another object on the stack. It overrides the Push method as implemented in TStack so it accepts only objects as arguments.

Errors

If not enough memory is available to expand the stack, an exception may be raised.

See also

TObjectStack.Pop

  

Pop the top object of the stack.

TObjectStack.Peek

  

Look at the top object in the stack.

Notes

 No notes exist for this page yet. 





lufdoc, Powtils, fpc, freepascal, delphi, kylix, c/c++, mysql, cgi web framework docs, Z505