Forcibly erroneous skipping

zhaozj2021-02-16  182

<% Option Explicit on Error Resume Next Dim Cn Set Cn = Server.CreateObject ("AdoDb.Connection") CN.Open "Driver = {Microsoft Access Driver (* .mdb)}; dbq =" & Server.mAppath ". ./data/webdata.mdb ") &";%>

Option expendit is a definition of a forced variable. If there is any variable, if it is used, it will report an error. On Error Resume Next means that there is an error to skip. It can be understood this way: Touch (ON) Error (Error) Jump to (Resume) Next sentence (Next)

转载请注明原文地址:https://www.9cbs.com/read-8315.html

New Post(0)