韩愈原道的语言形势:大家看看是这是什么代码?

来源:百度文库 编辑:高校问答 时间:2024/04/28 14:14:47
<%
' Microsoft ADO
' (c) 1996 Microsoft Corporation. All Rights Reserved.

' ADO constants include file for VBScript
'
'--------------------------------------------------------------------

'---- CursorTypeEnum Values ----
Const adOpenForwardOnly = 0
Const adOpenKeyset = 1
Const adOpenDynamic = 2
Const adOpenStatic = 3

'---- CursorOptionEnum Values ----
Const adHoldRecords = &H00000100
Const adMovePrevious = &H00000200
Const adAddNew = &H01000400
Const adDelete = &H01000800
Const adUpdate = &H01008000
Const adBookmark = &H00002000
Const adApproxPosition = &H00004000
Const adUpdateBatch = &H00010000
Const adResync = &H00020000
Const adNotify = &H00040000

'---- LockTypeEnum Values ----
Const adLockReadOnly = 1
Const adLockPessimistic = 2
Const adLockOptimistic = 3
Const adLockBatchOptimistic = 4

%>

VBScript

常量,
比如:
Rs.Open Sql,Conn,3,2
后面的3,2就可以用这些常量代替,
目的是为了增加代码的可读性

VB