Line Numbers (topic)

Line numbers are not supported by the Basic Control Engine.

As an alternative to line numbers, you can use meaningful labels as targets for absolute jumps, as shown below:

Sub Main()
  Dim i As Integer
  On Error Goto MyErrorTrap
  i = 0
LoopTop:
  i = i + 1
  If i < 10 Then Goto LoopTop
MyErrorTrap:
  MsgBox "An error occurred."
End Sub

More information

L