Erl Function [Runtime]/text/sbasic/shared/03050100.xhpSun Microsystems, Inc.converted from old format - fpe
dedr: fixed #i30425#Erl functionErl Function [Runtime]Returns the line number where an error occurred during program execution.Syntax:ErlReturn value:IntegerParameters:The Erl function only returns a line number, and not a line label.Example:sub ExampleErroron error goto ErrorHandler REM Set up error handlerDim iVar as IntegerDim sVar As StringREM Error caused by 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 ,"An error occurred"end sub