System.Contnrs.TObjectStack.Push

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function Push(AObject: TObject): TObject; inline;

C++

HIDESBASE System::TObject* __fastcall Push(System::TObject* AObject);

Properties

Type Visibility Source Unit Parent
function public
System.Contnrs.pas
System.Contnrs.hpp
System.Contnrs TObjectStack

Description

Adds an object to the top of the stack.

Call Push to add an object to the stack.

AObject is the object to add to the beginning of the stack.

Push returns a reference to the object that was just added (AObject).

See Also

Code Examples