Erl Function/text/sbasic/shared/03050100.xhpErl functionErl FunctionReturns 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 ' Set up error handlerDim iVar As IntegerDim sVar As String' Error caused by non-existent file iVar = Freefile Open "\file9879.txt" For Input As #iVar Line Input #iVar, sVar Close #iVar Exit SubErrorHandler: MsgBox "Error " & err & ": " & Error$ + chr(13) + "In Line : " + Erl + chr(13) + Now , 16 ,"An error occurred"End Sub