The system variable SysVar.overflowIndicator is set to 1 when arithmetic overflow occurs. By checking the value of this variable, you can test for overflow conditions.
After detection of an overflow condition, SysVar.overflowIndicator is not reset automatically. You must include code in your program to reset SysVar.overflowIndicator to 0 before performing any calculations that may trigger overflow checks.
You can use SysVar.overflowIndicator in these ways:
SysVar.overflowIndicator = 0; VGVar.handleOverflow = 2; a = b; if (SysVar.overflowIndicator == 1) add errorrecord; end
Related reference
Assignments
System variables outside of EGL libraries
handleOverflow