Skip to main content
Jason Huggins
Rocketeer
Jul 5, 2022 8:11 AM UTC

Foundation: How to use Exceptions in ProcScript

Uniface versions prior to 10.4.02 support error handling using the classic method, which requires you to explicitly check $procerror for a negative value immediately after every significant ProcScript instruction. If you don't do this, errors are ignored and code execution continues.

A new way of dealing with runtime errors has been introduced to help you write more robust and maintainable code, capturing potential errors earlier in the development process. This example shows you exception handling in practice.