RETURN myValue to MyProcedure
RETURN TO MyProcedure MyValue
RETURN [eExpression | TO MASTER | TO ProcedureName]Which means that you can pick one of the options but cannot combine them.
*P1.PRG cRet=P2() ?cRet * End P1 *P2.PRG *Following the prescribed syntax errors out lc=[Hello World] RETURN lc TO P1 && As prescribed will cause an error * End P2 with error *P2.PRG *Changing the prescribed syntax will work lc=[Hello World] RETURN TO P1 lc && Name of return to precedure before return value * End P2 That worksIOW - the syntax the Help system prescribes does not work. To make it work, the return-to-procedure-name needs to be before the returned value!:)