You need to add the line numbers to the code yourself in order to use this function. Then you should be able to do something like this in your error handling:
"Line: " & Erl
You must have a ton of code if you want to use this old function. It still works in VB
.NET if you want to go to the trouble of entering these numbers yourself.