AnsweredAssumed Answered

Is it possible to pass an array of record as a parameter to a subroutine?

Question asked by gavin.bell@optimeering.com on Nov 3, 2015
Latest reply on Nov 3, 2015 by Susanne.Heip

Hi,

 

I have a question regarding subroutine parameters.

 

I can pass an array of a basic type to a subroutine as a parameter as follows:

 

my_proc(AnArray)

 

procedure my_proc(InputArray: array(range) of integer)

...

end-procedure

 

But what if the array I want to send (by reference) is an array of record, e.g.

 

RecArray: array(range) of record

     a, b: integer

     data: array(1..5) of real

end-record

 

If I try to define the procedure where I want to send RecArray like this:

 

procedure new_proc(InputArray: array(range) of record)

 

I get a syntax error. Anyone know if this is possible?

Thanks in advance.

Outcomes