A report cannot include a RETURN statement because that would return control to the routine that invoked the report. Only NewEra returns this error.
-4430 Record parameters for a report cannot contain elements that are arrays.
You cannot pass a whole array as a parameter of a function. You can pass an individual element of the array by using a subscript. In this case, a record variable is specified as a parameter using asterisk notation, but one of the components of the record is an array.