procedure MaxMin(out aMax: Integer; out aMin: Integer);
Calculate minimum and maximum in one procedure call.
| # | Name | Description |
|---|---|---|
| 1 | aMax | Returns calling vector maximum value. |
| 2 | aMin | Returns calling vector monimum value. |
Result: stored in self (calling object)
Indexed: procedure MaxMin(out aMax: Integer; out aMin: Integer; Index: Integer; Len: Integer);
Calculate minimum and maximum in one procedure call.
| # | Name | Description |
|---|---|---|
| 1 | aMax | Returns calling vector elements [Index..Index+Len-1] maximum value. |
| 2 | aMin | Returns calling vector elements [Index..Index+Len-1] minimum value. |
| 3 | Index | The starting index at which to start the search. |
| 4 | Len | The number of elements to search starting from Index. |
Result: stored in self (calling object)
Remarks:
An exception is raised if array borders are overrun/underrun.