Foxtable(狐表)用户栏目专家坐堂 → 窗口table(表)控件问题


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

主题:窗口table(表)控件问题

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


加好友 发短信
等级:婴狐 帖子:16 积分:173 威望:0 精华:0 注册:2021/6/17 14:18:00
窗口table(表)控件问题  发帖心情 Post By:2021/6/30 13:12:00 [只看该作者]

图片点击可在新窗口打开查看


我现在设计了一个这么个录入窗口,窗口里加了一个Table(表)的控件,我有设计了一个查找栏,查找栏的代码如下,我想点击查找栏,Table(表)控件里的内容显示的是我查找栏里的内容,请问大神这段代码里还需要怎么修改。

Dim tbx As WinForm.TextBox = e.Form.Controls("czdwmc")
Dim chk As WinForm.CheckBox = e.Form.Controls("mhcz")
Dim str As String = tbx.Value
Dim dr As DataRow
If chk.Checked Then
    dr = DataTables("冷轧日报").Find("熔次号 Like '%"  & str & "%'","_identify desc") '模糊查找
Else
    dr = DataTables("冷轧日报").Find("熔次号 = '"  & str & "'","_identify desc") '精确查找
End If
If dr IsNot Nothing Then
    Dim idx As Integer = Tables("冷轧日报").FindRow(dr)
    If idx >= 0 Then
        Tables("冷轧日报").Position = idx 
    End If
End If

 回到顶部
总数 11 1 2 下一页