Cecil
19+ years progress programming and still learning.
I have a class object which has a set of properties. Some of these properties use the
I have the CATCH block which catches these errors. But what I would like to be able to do is CATCH the error, do something with it, and move on to the next property. I don't want my code to stop at the first error.
So, if I have following properties being set:
and both have invalid values set and both properties return an error. How do I catch all the errors in one go?
SET implementation
for validation. If the validation fails for the setting of the property value, I RETURN ERROR AppError.
I have the CATCH block which catches these errors. But what I would like to be able to do is CATCH the error, do something with it, and move on to the next property. I don't want my code to stop at the first error.
Code:
CATCH eAppError AS CLASS Progress.Lang.AppError:
REPEAT ix = 1 TO eAppError:NumMessages:
MESSAGE "Message: " eAppError:GetMessage(ix) SKIP
"Message #: " ix
VIEW-AS ALERT-BOX ERROR TITLE eAppError:ReturnValue.
END.
END CATCH.
So, if I have following properties being set:
Code:
foobarClassObj:propxxx = 'xx@%'
foobarClassObj:propyyy = '123x&*'
and both have invalid values set and both properties return an error. How do I catch all the errors in one go?
Last edited: