Hi I've got this stupid range check error. I can not define the size of arrays in the input section when declaring and defining functions. altough if I do not define them it will be empty and will create range check error. The solution is just way too simple for me to find it as usually can someone help me?

******************************
Details: my function is something like this:
Function myfunction(input1:array of integer; input2:array of integer):real;
{defining as function myfunction(input1:array[1..9] of integer;input2:array[1..9] of integer):real;
will result in error "of expected [ found"}
begin
{calculations...}
myfunction:=calculated_value;
end;
I declare array and an output variable in the main program:
var
array1,array2:array[1..9] of integer;
variable:real;
I then want to call my function

variable:=myfunction(array1,array2);
and then it says Error 201(Which is range check error)

Thanks in forward