Hi Fred,
Thanks for your help.
I don't know how to link my previous reply so I'll copy my message here.
I experimented a bit further and oddly enough I noticed that the command
DO FORM OrderSelect WITH -1, laOrderIDs
does actually pass the whole array. That’s good but I thought it didn’t work this way. Is this reliable?