回车事件中的空值检查问题!!
我在数据窗口的“pbm_dwnprocessenter”事件定义如下:
string ls_temp
long ll_column_count
long ll_column
ll_column_count =long(this.Describe("dw_1.Column.Count"))
ll_column = this.GetColumn()
if ll_column = ll_column_count then
return
//////////问题出现地方
else
ls_temp=this.getitemstring(this.getrow(),ll_column)
/////
if IsNull(ls_temp) THEN
MessageBox("该项不能够为为空","请重新输入!")
this.SetColumn(ll_column)
else
this.SetColumn(ll_column+1)
end if
end if
我想在回车输入每个值得后进行空值的检查,如果是空值的话要求重新输入,但是为什么无论输入是否是空值,MessageBox("该项不能够为为空","请重新输入!")都出现,
是程序的哪个部分出现了问题?同时,如果值是输入后再修改了,如何对该值进行空值的检查,如果是空值的话要求重新输入??