窗口编程里有没有像DW里的函数isnewrow一样的函数?
如题 问题点数:20、回复次数:4Top
1 楼balloonman2002()回复于 2005-10-16 22:20:43 得分 0
楼主准备要这样的函数来判断什么呢Top
2 楼balloonman2002()回复于 2005-10-16 22:26:11 得分 20
哦,我理解你的意思了,用函数:
dwcontrol.GetItemStatus ( row, column, dwbuffer )
指定column为0即可获取整行信息:
?NotModified! ?The information in the row or column is unchanged from what was retrieved.
?DataModified! ?The information in the column or one of the columns in the row has changed since it was retrieved.
?New! ?The row is new but no values have been specified for its columns. (Applies to rows only, not to individual columns.)
?NewModified! ?The row is new, and values have been assigned to its columns. In addition to changes caused by user entry or the SetItem function, a new row gets the status NewModified! when one of its columns has a default value. (Applies to rows only, not to individual columns.)Top
3 楼mtu207(比猫大的猫)回复于 2005-10-16 23:57:02 得分 0
佩服气球。不过,这帖子和这楼主是不是有点太那什么了?Top
4 楼saiche05(赛车)回复于 2005-10-17 11:53:44 得分 0
if dwcontrol.GetItemStatus ( row, column, dwbuffer )=new! or dwcontrol.GetItemStatus ( row, column, dwbuffer )=newmodified! then
............
end ifTop




