以下是引用有点甜在2014-10-28 10:34:00的发言:
If r.IsNull("需求描述")
MessageBox.show("请检查,需求描述不能为空","点击第二步提交时请确认",MessageBoxButtons.OK,MessageBoxIcon.Question)
End If
If r.IsNull("show_version")
MessageBox.show("请检查,show version不能为空","点击第二步提交时请确认",MessageBoxButtons.OK,MessageBoxIcon.Question)
End If
If r.IsNull("版本期望交期") Then
MessageBox.show("请检查,版本期望交期不能为空","点击第二步提交时请确认",MessageBoxButtons.OK,MessageBoxIcon.Question)
End If
这样也肯定是某一列为空的提醒。
比如这3列都为空。我是否要加入对这3列都为空的判断。如果是2列,那还需要组合一下。
If r.IsNull("需求描述") = True andalso r.IsNull("show_version") = True andalso r.IsNull("版本期望交期") = True Then
MessageBox.show("请检查,需求描述,show version和版本期望交期不能为空","点击第二步提交时请确认",MessageBoxButtons.OK,MessageBoxIcon.Question)
Else