Global Definition Set Checks : (C7127) Subroutines with illegal parameter type or return type

(C7127) Subroutines with illegal parameter type or return type

Error In:
Correctness
Description:
In a subroutine where a UDT is the return type or the type of a parameter, the UDT has an illegal definition. The following table lists the illegal definitions for UDTs.
 
(*) In these cases, a middle user-defined type, is needed. For example, if the return type of a function is an array of string, it should be defined as:

UDT array of STR_UDT, and STR_UDT, a string

Example:
subroutine F1
return type ARR_STR1, defined as array of string STR_QUEUE1,
type of parameter P1, defined as queue
 
 
Erroneous Elements:
Subroutines