Queue field access inside procedure passed (Queue)

Your TestQ Procedure probably has a prototype of (*QUEUE Q2) so it has no idea of the structure.

For that Procedure to “understand” that Q2 has F1 and F2 you must pass it as a Named Queue which usually requires a TYPE Queue e.g. (*Q1_QUEUE_Type Q2) be defined in the scope for both procedures, usually global or an INC file.

Look at the Help:

  • PROCEDURE Prototypes
    • Prototype Parameter Lists
      • Passing Named GROUPs, QUEUEs, and CLASSes

See also

1 Like