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

Calculate minimum, maximum and their indices in one procedure call.

Pascal
procedure MaxMinIdx(out aMax: integer; out aMaxIdx: integer; out aMin: integer; out aMinIdx: integer; Index: integer; Len: integer); overload;
Parameters 
Description 
aMax 
Returns calling vector elements [Index..Index+Len-1] maximum value. 
aMaxIdx 
Returns calling vector maximum value index. 
aMin 
Returns calling vector elements [Index..Index+Len-1] minimum value. 
aMinIdx 
Returns calling vector minimum value index. 
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!