Erl Function
Returns the line number where an error occurred during program execution.
කාරක රීතිය:
Erl
ආපසු ලබාදෙන අගය:
Integer
පරාමිතීන්:
The Erl function only returns a line number, and not a line label.
උදාහරණය:
Sub ExampleError
on error goto ErrorHandler REM Set up error handler
Dim iVar As Integer
Dim sVar As String
REM Error occurs due to non-existent file
iVar = Freefile
Open "\file9879.txt" For Input As #iVar
Line Input #iVar, sVar
Close #iVar
Exit Sub
ErrorHandler:
MsgBox "දෝෂය " & Err & ": " & Error$ + chr(13) + "පේළි අංකය : " + Erl + chr(13) + Now , 16 ,"දෝෂයක් සිදුවිය"
End Sub