欢迎您:游客!请先
登录
或
注册
风格
恢复默认设置
|
展区
文件集浏览
图片集浏览
Flash浏览
音乐集浏览
电影集浏览
|
搜索
Foxtable(狐表)
→
用户栏目
→
专家坐堂
→ [讨论]如何判断负数?(就是限制单元格输入负数)
新的主题
投票帖
小字报
下一主题 >>
<< 上一主题
共有
2223
人关注过本帖
树形
打印
复制链接
主题:[讨论]如何判断负数?(就是限制单元格输入负数)
有点蓝
小
大
1楼
|
信息
|
搜索
|
邮箱
|
主页
|
UC
加好友
发短信
等级:超级版主
帖子:
109720
积分:558310
威望:0
精华:9
注册:
2015/6/24 9:21:00
Post By:2016/9/7 17:52:00 [
显示全部帖子
]
Dim dr As DataRow = e.DataRow
If e.DataCol.Name = "销售数量"
If e.Newvalue > dr("可用量")
e.Cancel = True
MessageBox.Show("不能大于可用量!", "提示", MessageBoxButtons.OK, MessageBoxicon.Error)
Else
If e.Newvalue < 0
e.Cancel = True
MessageBox.Show("哇!请你不要乱填!", "警告", MessageBoxButtons.OK, MessageBoxicon.Error)
End If
End If
End If
下一主题 >>
<< 上一主题
RSS2.0
|
Xhtml无图版
|
Xslt无图版
Copyright © 2000 - 2018
foxtable
.com
Tel: 4000-810-820 粤ICP备11091905号
Powered By
Dvbbs
Version 8.3.0
页面执行时间 0.03125 秒, 5 次数据查询