For any remote ABL procedure, the corresponding proxy method can be customized to return the ABL RETURN-VALUE; otherwise, the method returns void. Alternatively, after calling the method, the client can access the current value of the ABL RETURN-VALUE function by calling the common method for Java and .NET Open Clients shown in the following table:

Java method _getProcReturnString
.NET method _GetProcReturnString

This method returns the current value of RETURN-VALUE as set by the RETURN statement most recently executed on the application server for this connection. It returns a string, which can be null, so the client should check for an ABL Unknown value (?). AppObjects, SubAppObjects, and ProcObjects all support this method.

The RETURN-VALUE function is set in ABL using the RETURN string or the RETURN ERROR string statement. For more information on these statements, see ABL Reference, and for how they function in an application server application, see Developing Application Server Applications.

For any remote user-defined function, ProxyGen defines the corresponding method to return a value that is compatible with the ABL data type returned by the user-defined function.

Note: For a complete discussion or error handling techniques, including the use of the new structured error handling features, see OpenEdge Development: ABL Error Handling.