The SDL Component Suite is an industry leading collection of components supporting scientific and engineering computing. Please visit the SDL Web site for more information....



Pop


Unit: SDL_dstruct
Class: T2DArrayStack
Declaration: [1] function Pop (var Arr: TDouble2DArray): integer;
[2] function Pop (var Arr: TDouble2DArray; var Name: string): integer;

The method Pop retrieves the array pushed to the stack at last, copies it into the variable parameter Arr and removes it from the stack. Optionally the name of the array may also be retrieved by passing the variable parameter Name (version [2]).

The function returns the following error codes:

 0 ... everything is OK, the array has been retrieved
-1 ... the stack is empty, the returned variable parameter Arr is nil, the parameter Name returns an empty string


Last Update: 2023-Feb-06