Dim str As String
Dim csmc As String = "低压线圈结构形式"
Dim tjmc As String = "<="
Dim dqz As Double = 110
str = "系数名称 = '" & csmc & "' And 判断值一 " & tjmc & dqz
Output.Show(str)
'以上输出为:系数名称 = '低压线圈结构形式' And 判断值一 <=1000
'**** 但实际上我需要在上面的基础上再加上"序号 Desc"这个倒序排列,但上面怎么通过字符串连接起来呢
'(str = "系数名称 = '" & csmc & "' And 判断值一 " & tjmc & dqz & ",""序号 DEsc""")
'(str = "系数名称 = '" & csmc & "' And 判断值一 " & tjmc & dqz & ",序号 DEsc")
'上面两个都不行,怎么写才对???
Dim dr As DataRow = DataTables("计算原则表").Find(str)
If dr IsNot Nothing Then
Output.Show(dr("推荐值") )
Else
MessageBox.Show("未查找到该行")
End If
[此贴子已经被作者于2019/11/12 19:30:21编辑过]