คุณสมบัติ HelpContext ของ ADO

การกำหนดและการใช้งาน

คุณสมบัติ HelpContext สามารถกลับค่า long ที่ช่วยในการชี้ ID ของประเด็นในหนังสือความช่วยเหลือ

คุณสมบัตินี้อนุญาตให้คุณเชื่อมต่อกับระบบบริการความช่วยเหลือของ Windows โดยตรง ตัวอย่างเช่น คุณสามารถเรียกฟังก์ชันเหลือบริการความช่วยเหลือของ Windows API

ถ้าไม่มีสิทธิ์ที่จะเชื่อมต่อกับระบบบริการความช่วยเหลือของ Windows ฮิลล์ ตัวแปร HelpContext จะกลับค่าเป็น 0

วลี

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 & "
") response.write("Native error: ") response.write(objErr.NativeError & "
") response.write("Error number: ") response.write(objErr.Number & "
") response.write("Error source: ") response.write(objErr.Source & "
") response.write("SQL state: ") response.write(objErr.SQLState & "
") response.write("

") next %>