In the following code
It will trap with an error 2 on line 5. I discovered something today:
You can't put a comment on a data statement.
Without the comment it works just fine.
Code: (Select All)
Dim a As Integer
On Error GoTo Error1
Read a
Read b
Print a
Print b
End
Dim As Integer ER, EL
Error1:
ER = Err: EL = _ErrorLine
Resume Quit
Quit:
Print "?Error"; ER; " on line"; EL; "described as "
Print _ErrorMessage$(ER)
End
Data 6
Data 7 ' the number
It will trap with an error 2 on line 5. I discovered something today:
You can't put a comment on a data statement.
Without the comment it works just fine.
While 1
Fix Bugs
report all bugs fixed
receive bug report
end while
Fix Bugs
report all bugs fixed
receive bug report
end while