How to send only one row of a multidimensional array to a Function?

Asked

Viewed 99 times

0

I need to send only one line of a array multidimensional as a parameter of a Function, without having to transfer this line to another array.

for example:

calling for:

var
  UmArray : array [0..4, 0..20] of integer;
begin
//preenche o array

funcao(UmArray[2]);
end;


funcao(UmArray: array of integer);
begin
//faz algo
end;
  • array[0] represents an integer so declare the function so that it takes an integer as parameter.

  • Actually, array[0], represents a row of an array, and that’s what I want to pass, an array containing only 1 row of the multidimensional array.

  • Sorry, I misread the question.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.