Change Procedure Return-Type

Errornix

New Member
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).
 

Wossname

New Member
I assume you're talking about this sort of thing:
Code:
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.
 
Top