最新提现记录

  • 恭喜 admin 于 2023-6-6 15:17 成功提现 500元
  • 恭喜 admin 于 2023-5-3 09:45 成功提现 400元

这串代码是什么意思

[复制链接]
查看1451 | 回复0 | 2023-4-4 08:57:27 | 显示全部楼层 |阅读模式
Dim Tag,TextList
Tag=SmartTags("_Index")
TextList="TextList1"
Dim conn,oRs,oCom
Set conn = CreateObject("ADODB.Connection")
Set oRs = CreateObject("ADODB.Recordset")
conn.ConnectionString = "Driver={SQL Server};Server=" & HMIRuntime.SmartTags("@ServerName") & "\WINCC;database=" & HMIRuntime.SmartTags("DatabaseName") & ";UID=;PWD=;"
conn.Cursorlocation = 3
conn.Open
Set oRs=CreateObject("ADODB.RecordSet")
Set oCom=CreateObject("ADODB.Command")
Set oCom.activeconnection=conn
oCom.CommandType=1
oCom.CommandText = "SELECT * FROM TextList where TextList = '" & TextList & "'"
Set oRs=oCom.Execute
If Not oRs.EOF Then
        Text_Trigger=oRs("Text" & Tag)
End If
oRs.Close
Set oRs = Nothing
Set oCom = Nothing
conn.Close
Set conn = Nothing

回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则