Thank you PxPlus for your reply.
If I understand correctly, you suggest something like
In the initialization procedure : "CALL.PRG",my_object_ctl
In the closing procedure : "CLOSE.PRG",my_object_ctl
I tested this in the attached example. CALL.PRG puts 100 in the variable and CLOSE.PRG shows a messagebox with the received variable.
To test I used
%nomads'QueryProgram$="*winqry"
process "test","demo.en"
%nomads'QueryProgram$="*winqry2"
process "test","demo.en"
In my first test (*winqry) the messagebox showed 100, in the second (*winqry2) showed 0.
Am I missing something?