Foxtable(狐表)用户栏目专家坐堂 → 新增明细这段代码错在哪里?


  共有2360人关注过本帖平板打印复制链接

主题:新增明细这段代码错在哪里?

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


加好友 发短信
等级:三尾狐 帖子:767 积分:6119 威望:0 精华:0 注册:2018/2/1 17:26:00
新增明细这段代码错在哪里?  发帖心情 Post By:2020/6/29 0:18:00 [只看该作者]

For Each ct As Object In e.Form.Controls
    If Typeof ct Is WinForm.Table Then
        If ct.Visible = True Then
            Dim nr As Row
            Dim nms() As String = {"Table2","Table3","Table4"}
            For Each nm As String In nms
                If ct.Table.Name.Contains("nm") Then
                    ct.Table.Focus  '将输入焦点移到指定Table表中
                    nr = ct.Table.AddNew()
                    ct.Table.Select(nr.Index,0)  '定位到新增行的第一列单元格
                    'ct.Table.StartEditing   '进入单元格编辑模式
                End If
            Next
        End If
       
    End If
Next

 回到顶部