ADO HelpContext Property

Definition and Usage

The HelpContext property can return a long value that represents the context ID of the topic in the help file.

This property allows you to combine with the Windows help system, for example, you can call the Windows API help function.

If there is no permission to combine with the Windows help system, the HelpContext property will return zero

Syntax

lngErrorContext=objErr.HelpContext

Example

<%
for each objErr in objConn.Errors
  response.write("<p>")
  response.write("Description:")
  response.write(objErr.Description & "<br />")
  response.write("Help context:")
  response.write(objErr.HelpContext & "<br />")
  response.write("Help file:")
  response.write(objErr.HelpFile & "<br />")
  response.write("Native error: ")
  response.write(objErr.NativeError & "<br />")
  response.write("Error number: ")
  response.write(objErr.Number & "<br />")
  response.write("Error source: ")
  response.write(objErr.Source & "<br />")
  response.write("SQL state: ")
  response.write(objErr.SQLState & "<br />")
  response.write("</p>")
next
%>