Foxtable(狐表)用户栏目专家坐堂 → Dim Cols1() As String = {"编码","EquipmentID","标志","dt_BeginDate","状态"} 如何定义表中无对应字段 值的组合呢?


  共有3194人关注过本帖树形打印复制链接

主题:Dim Cols1() As String = {"编码","EquipmentID","标志","dt_BeginDate","状态"} 如何定义表中无对应字段 值的组合呢?

帅哥哟,离线,有人找我吗?
有点蓝
  1楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:超级版主 帖子:110669 积分:563259 威望:0 精华:9 注册:2015/6/24 9:21:00
  发帖心情 Post By:2021/7/10 9:18:00 [显示全部帖子]

Dim Cols1() As String = {编码,"EquipmentID",标志,"dt_BeginDate",状态}

……
    For i As Integer = 0 To Cols1.Length -1
        If s > "" Then s = s  & ","
        If DataTables("m_Localizer").DataCols.Contains(Cols1(i)
if  dr.IsNull(Cols1(i)) = False Then
            s =  s  & dr(Cols1(i))
end if
else
s =  s  & Cols1(i)
        End If
    Next
[此贴子已经被作者于2021/7/10 9:21:20编辑过]

 回到顶部