Try OpenEdge Now
skip to main content
Programming Interfaces
External Program Interfaces : Host Language Call Interface : Using HLC library functions : Passing error codes back to ABL
 
Passing error codes back to ABL
You can use HLC library functions to pass a specific error code from your C function to ABL and test it for a specific value. To do this, define a shared variable within your ABL procedure to hold the error code value. Within your C function, set the shared variable with an HLC library function before returning to ABL. In the code fragment above, the shared variable errcode holds the error code value.