Error Function [Runtime]/text/sbasic/shared/03050300.xhpSun Microsystems, Inc.converted from old format - fpeError functionError Function [Runtime]Returns the error message that corresponds to a given error code.Syntax:Error (Expression)Return value:StringParameters:Expression: Any numeric expression that contains the error code of the error message that you want to return.If no parameters are passed, the Error function returns the error message of the most recent error that occurred during program execution.Example:sub ExampleErroron error goto ErrorHandler REM Set up error handlerDim iVar as IntegerDim sVar As StringREM An error occurs due to non-existent fileiVar = FreefileOpen "\file9879.txt" for Input as #iVarLine Input #iVar, sVarClose #iVarexit subErrorHandler:MsgBox "Error " & err & ": " & error$ + chr(13) + "In line : " + Erl + chr(13) + Now , 16 ,"error occurred"end sub