Quote:
> Line numbers for the code you are in don't seem to be displayed
> ANYWHERE?? Can that be? Is there nowhere where you can toggle line
> number on and off so you can KNOW what line you are on in a particular
> module?
AFAIK, no.
Quote:
> ALSO, there is an ERL built-in function that is SUPPOSED to return the
> LINENUMBER that gave a particular error (to be used with ON ERROR)
> YET, whenever I've tried to display it it ALWAYS says line "0".
> What good is this ERL command if it never gives the line number
> that actually caused an error?
An example will demonstrate better than an explanation:
On Error Goto PROC_ERR
100: Set MyDatabase = OpenDatabase("xyz.mdb")
101: Set MyRecordset = MyDatabase.OpenRecordset("abc")
Exit Sub
PROC_ERR:
if Erl = 100 Then
MsgBox "Couldn't open database (" & _
Cstr(Err.Number) & ") " & Err.Description
elseif Erl = 101 Then
MsgBox "Couldn't open recordset (" & _
Cstr(Err.Number) & ") " & Err.Description
else
MsgBox "Unexpected error (" & _
Cstr(Err.Number) & ") " & Err.Description
end if
Exit Sub
End Sub
Hope that helped
P.S. You wouldn't happen to know of any Montreal VB Groups, in either
official language (or for that matter, in Italian or Norwegian) ?
N Varacalli
--
The views expressed herein do not represent the views of my employer.
The Address in the header is mangled, delete appropriately.
To reach me via e-mail, try (replacing stars with dots)
NICHOLAS_VARACALLI at non-hp-Canada-om1*om*hp*com