You are here: Symbol Reference > MtxExprInt Namespace > Classes > MatrixInt Record > public > MaxMin Method > MatrixInt.MaxMin Method (integer, integer, integer, integer)
MtxVec VCL
ContentsIndex
PreviousUpNext
MatrixInt.MaxMin Method (integer, integer, integer, integer)

Calculate minimum and maximum in one procedure call.

Pascal
procedure MaxMin(out aMax: integer; out aMin: integer; const Index: integer; const Len: integer); overload;
Parameters 
Description 
aMax 
Returns calling vector elements [Index..Index+Len-1] maximum value. 
aMin 
Returns calling vector elements [Index..Index+Len-1] minimum value. 
Index 
The starting index at which to start the search. 
Len 
The number of elements to search starting from Index. 

An exception is raised if array borders are overrun/underrun.

Copyright (c) 1999-2025 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!