The GetLastErrorMessage() intrinsic function returns the text message of the last EASI error that occurred. An empty string is returned if no error has occurred since EASI began executing.
define function Invert( x ) local integer y y = 1 / x ONERROR goto ErrorHandler return( y ) ErrorHandler: \ print "The following error was trapped:\n" print GetLastErrorMessage() return ( 0 ) enddefine
© PCI Geomatics Enterprises, Inc.®, 2026. All rights reserved.