Example
procedure TForm1.ButtonClick(Sender: TObject);
var x:integer;
begin
SetLength(MyArray,10)
for x:=0 to 9 do FillWithRandomNumbers(MyArray[x]);
end;
Procedure FillWithRandomNumbers(var MyArray: Array of double);
begin
MyArray:=Random; //<-I have no idea what to do here :(
end;
As you can see I'm trying to pass single element to procedure in order to perform some task on specified array cell. For example procedure FillWithRandomNumbers should take MyArray[2] and fill this cell with random number.