以文本方式查看主题

-  Foxtable(狐表)  (http://www.foxtable.com/bbs/index.asp)
--  专家坐堂  (http://www.foxtable.com/bbs/list.asp?boardid=2)
----  窗口中交叉表操作错误!  (http://www.foxtable.com/bbs/dispbbs.asp?boardid=2&id=9275)

--  作者:mr725
--  发布时间:2011/3/24 19:00:00
--  窗口中交叉表操作错误!

例子在这里:http://www.datasoft.com.cn/viewFile.asp?BoardID=2&ID=8681

 

 操作步骤:删除、按空格键,再按回车键后,错误提示:::: 


图片点击可在新窗口打开查看此主题相关图片如下:wrg.gif
图片点击可在新窗口打开查看

--  作者:狐狸爸爸
--  发布时间:2011/3/24 22:07:00
--  

代码不完善,修改一下:

 

If e.Col.Name <> "颜色" Then
    Dim dt As DataTable = DataTables("表A")
    Dim dr As DataRow = dt.Find("颜色 = \'" & e.Row("颜色") & "\' And 尺码 = \'" & e.Col.name & "\'")
    If dr IsNot Nothing Then
        If IsNumeric(e.text) Then
            dr("数量") = e.Text
        Else
            dr("数量") = Nothing
        End If
    End If
End If


--  作者:mr725
--  发布时间:2011/3/24 22:31:00
--  
ok > IsNumeric``````````