📄 dgconn.asp
字号:
<%dim connDG,dgconnstr
const dgDB="db\dgdata.mdb"
dgconnstr="driver={Microsoft Access Driver (*.mdb)};dbq=" & Server.MapPath(dgDB)
Set connDG = Server.CreateObject("ADODB.Connection")
connDG.Open dgconnstr
set dgconnstr=nothing
%>
<%function isInteger(para)
on error resume next
dim str
dim l,i
if isNUll(para) then
isInteger=false
exit function
end if
str=cstr(para)
if trim(str)="" then
isInteger=false
exit function
end if
l=len(str)
for i=1 to l
if mid(str,i,1)>"9" or mid(str,i,1)<"0" then
isInteger=false
exit function
end if
next
isInteger=true
if err.number<>0 then err.clear
end function
%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -