Description
F$ERRNUM() is used to return the number of the last EASI error that occurred.
Call Signature
int F$ERRNUM ( )
Return Value
int
A non-zero error code if an error has occurred since EASI began executing.
Example
The following example will loop requesting input and will handle exceptional circumstances by examining the value of F$ERRNUM and F$INPUT.
local integer value
main_loop: \
while( 1 > 0 )
input "Value > " value onerror goto error_handler
print "You entered:",value
endwhile
error_handler: \
if( F$INPUT = "bye" ) return
value = 0
print "Error number ",F$ERRNUM," has occurred on input:",F$INPUT
goto main_loop
See also
© PCI Geomatics Enterprises, Inc.®, 2026. All rights reserved.