Chris
2012-01-17 11:04:28
Its Solved :D
Hi, I am searching for a function :bart:
Well, I have an "array of Integer" and the array contains values but I need a function which finds the highest integer inside the array.
Like this:
var
A:array of Integer;
begin
A[0] := 6;
A[1] := 2;
A[2] := 9;
A[3] := 16;
A[4] := 23;
A[5] := 3;
writeln('A[' + HighestValue(A) + '] contains the highest value.');
end;
which would return:
A[4] contains the highest value.
But HighestValue doesnt exist so is there a function which does this?