Foxtable(狐表)用户栏目专家坐堂 → 遍历指定列名数据


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

主题:遍历指定列名数据

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


加好友 发短信
等级:版主 帖子:85326 积分:427815 威望:0 精华:5 注册:2012/10/18 22:13:00
  发帖心情 Post By:2018/5/27 22:43:00 [显示全部帖子]

Dim dtb As DataTable = DataTables("试块取样")
Dim dr As Row = Tables("试块取样").Current
Dim nms() As String = {"品种种类","施工方量","供应商名称","设计强度","坍落度","试块留制_标准养护","试块留制_同条件养护","试块留制_拆模试块","取样人","见证人"}
Dim str As String
For Each nm As String In nms
    If dr.IsNull(nm) = False Then
        str = str & nm & ":" & dr(nm) & ","
    End If
Next
MessageBox.Show(str)

 回到顶部