You are here: Symbol Reference > AbstractMtxVecInt Namespace > Classes > TMtxVecInt Class > public > MaxMin Method > TMtxVecInt.MaxMin Method (integer, integer, integer, integer)
MtxVec VCL
ContentsIndex
PreviousUpNext
TMtxVecInt.MaxMin Method (integer, integer, integer, integer)

Calculate minimum and maximum in one procedure call.

Pascal
procedure MaxMin(out aMax: integer; out aMin: integer; Index: integer; 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!