Foxtable(狐表)用户栏目专家坐堂 → 按钮的原来的代码如下


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

主题:按钮的原来的代码如下

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


加好友 发短信
等级:五尾狐 帖子:1062 积分:9781 威望:0 精华:0 注册:2012/3/13 5:23:00
按钮的原来的代码如下  发帖心情 Post By:2015/6/2 17:35:00 [只看该作者]


图片点击可在新窗口打开查看此主题相关图片如下:捕获.png
图片点击可在新窗口打开查看
按钮的原来的代码如下

要与下面的内容在同一列  劳烦指点一下,非常感谢!!!!!

 

Dim Cols1() As String = {"name","address","phone","phone1" }
Dim Cols2() As String = {"name","address","phone1","phone2" }
With Tables("user")
    If .TopPosition > -1 Then '如果选定区域包括数据行
        For i As Integer = .TopPosition To .BottomPosition
            Dim r As Row = .Rows(i)
            Dim dr As DataRow = DataTables("bell").AddNew()
            For n As Integer = 0 To cols1.Length - 1
                dr(Cols2(n)) = r(Cols1(n))
            Next
        Next
    End If
End With
DataTables("bell").save()


 回到顶部
帅哥哟,离线,有人找我吗?
大红袍
  2楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:贵宾 帖子:39310 积分:196782 威望:0 精华:1 注册:2015/4/25 9:23:00
  发帖心情 Post By:2015/6/2 17:37:00 [只看该作者]

Dim Cols1() As String = {"name","address","phone","phone1" }
Dim Cols2() As String = {"name","address","phone1","phone2" }
With Tables("user")
    If .TopPosition > -1 Then '如果选定区域包括数据行
        For i As Integer = .TopPosition To .BottomPosition
            Dim r As Row = .Rows(i)
            Dim dr As DataRow = DataTables("bell").AddNew()
            For n As Integer = 0 To cols1.Length - 1
                dr(Cols2(n)) = r(Cols1(n))
            Next
            dr("单号列") = e.Form.Controls("TextBox1").Text
        Next
    End If
End With
DataTables("bell").save()

 回到顶部