Foxtable(狐表)用户栏目专家坐堂 → [求助]查找表中合适的数据


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

主题:[求助]查找表中合适的数据

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


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

Dim nr As WinForm.TextBox = e.Form.Controls("TextBox5")
Dim nms() As String=nr.text.split("*")
Dim W As  Integer=nms(0)
Dim L As  Integer=nms(1)
Dim H As  Integer=nms(2)

Dim exp As String
Dim r As Integer
exp="[哥林柱_X尺寸]> " & W & " And [哥林柱_Y尺寸]> " & L & " And [容模厚度_MIN] < " & H & " And [容模厚度_MAX]> " & H
msgbox(exp)
If nr IsNot Nothing Then '已经输入了尺寸
    With CurrentTable
        r = .Findrow(exp) '从第一行开始查找
        If r >= 0 Then '如果找到的话
            .Position = r '定位到找到的行.
        Else
            MessageBox.show("没有找到合适的机台,请确认输入的内容是否正确","提示")
        End If
    End With
Else
    MessageBox.show("请先输入模具外形尺寸再进行查找","提示")
    
End If

 回到顶部