AnsweredAssumed Answered

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

Question asked by on Nov 3, 2015
Latest reply on Nov 3, 2015 by Susanne.Heip



I have a question regarding subroutine parameters.


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




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




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



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.