Pop

Declaration:T2DArrayStack.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