以文本方式查看主题

-  Foxtable(狐表)  (http://foxtable.com/bbs/index.asp)
--  专家坐堂  (http://foxtable.com/bbs/list.asp?boardid=2)
----  如何判断录入的数字是整数  (http://foxtable.com/bbs/dispbbs.asp?boardid=2&id=43654)

--  作者:lfxxdt
--  发布时间:2013/12/12 14:11:00
--  如何判断录入的数字是整数

If e.DataRow("生产数").Type = "整数" Then

   else
      e.DataRow("生产数") = Nothing

End If

 

我想生产数录入如果是整理我就不去管它,如果不是清空,应该如何编写代码。


--  作者:Bin
--  发布时间:2013/12/12 14:20:00
--  
if e.DataRow("生产数").tostring().Contains(".") then
    messagebox.show("小数")
else
    messagebox.show("整数")
end if