Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

err.line not holding value

Status
Not open for further replies.

MikeT

IS-IT--Management
Feb 1, 2001
376
US
This code:

<%@ Language=VBScript %>
<% ldsjlasfjsdal
on error resume next
%>
Error Number: <%= Err.Number %><BR>
Error Description: <%= Err.Description %><BR>
Source: <%= Err.Source %><BR>
LineNumber: <%= Err.Line%><BR>

Produces this output:

Error Number: 13
Error Description: Type mismatch
Source: Microsoft VBScript runtime error
LineNumber:

Why is the line number not coming through?
 
oops; 'on error resume next' is before the garbage in the actual code; (copy and paste thing).
 
Silly me hasn't got the vbs or js CHMs on the 'puter
I'm using, but looking in vb5 the ADODB.Error object
doesn't have a Line Number .. <insert witticism here>
codestorm
 
Hrm, could be ..
Try outputting all the properties for the ADODB.Error
object, see what it offers .. <insert witticism here>
codestorm
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top