Is there a way to define the return-type for a .p? I know how to specify the type when using OUTPUT parameters, but I want to be able to define the actual RETURN data-type. (It is CHAR by default).
PROCEDURE someprocedure:
/* do something */
RETURN /* somereturnvalue */.
END PROCEDURE.
A procedure RETURN-VALUE is always a character, or maybe a Progress.lang.error object for a RETURN ERROR. You can define the datatype for a function return, but this isn't the same thing.
Personally I restrict RETURN-VALUEs to return simple error/ok conditions and use an output parameters for anything else.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.