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


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

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

帅哥哟,离线,有人找我吗?
大红袍
  1楼 | 信息 | 搜索 | 邮箱 | 主页 | 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()

 回到顶部