Consultor Eletrônico



Kbase P100608: RETURN ERROR doesn't work when run from a Function.
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   31/01/2005
Status: Unverified

SYMPTOM(s):

Using RETURN ERROR within a 4GL Function.

ERROR-STATUS:ERROR = NO in the procedure that called the function.

ON ERROR block in the calling procedure doesn't trap RETURN ERROR run from within a function.

Error handling for Functions work differently than Internal Procedures.

CAUSE:

Enhancement Request# 20050130-004

FIX:

This Enhancement has not been implemented in the product.
While FUNCTIONS are not supposed to return an error condition to the calling procedure, in some circumstances it would be very useful. This request is for an error condition to be returned to the calling program if an explicit RETURN ERROR is run.