ADO HelpContext 属性
❮ Complete Error Object Reference
HelpContext 属性可返回一个 long 值,该值帮助文件中主题的上下文 ID。
该属性允许您与 Windows 帮助系统结合,例如,您可以调用 Windows 的 API 帮助函数。
如果没有与Windows help system 结合的权限,HelpContext 属性将返回零。
语法
lngErrorContext=objErr.HelpContext
实例
<%
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
%>
❮ Complete Error Object Reference