Foxtable(狐表)用户栏目专家坐堂 → 请教问题


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

主题:请教问题

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


加好友 发短信
等级:超级版主 帖子:107729 积分:547978 威望:0 精华:9 注册:2015/6/24 9:21:00
  发帖心情 Post By:2020/6/4 9:10:00 [显示全部帖子]

If e.KeyCode = keys.Enter Then
        Dim title As WinForm.TextBox = e.Form.Controls("title")
    Dim s As String = title.Text
    If s.Length <> 11 
        MessageBox.Show("货号输入错误","提示",MessageBoxButtons.OK,MessageBoxIcon.Information)
        Return
    End If

    Dim r As DataRow = DataTables("GB").AddNew
    r("SPDM") = s.SubString(0,7)
    r("GG1DM") = s.SubString(7,2)
    r("GG2DM") = s.SubString(9,2)
    r.save()
    e.Cancel = True
    title.SelectAll
    
End If

 回到顶部