http://www.xuebuyuan.com/2174728.html

在vb.net中如何判断字段为null

 

在vb.net中如何判断字段为null

 

isdbnull()或者dbnull.value

如果是判断一个DataRow的某个字段值是否是NULL的话,除了上面的方法,还可以 
If MyRow.IsNULL("字段名") Then 
如:       

'判断数据集中的表的个数 
If ds.Tables.Count() = 0 Then

end if'判断表中行的个数 
If dssel.Tables(0).Rows.Count <> 0 Then

end if

相关文章:

  • 2022-12-23
  • 2021-08-31
  • 2021-07-31
  • 2021-12-14
  • 2021-12-10
猜你喜欢
  • 2022-01-07
  • 2022-01-07
  • 2022-12-23
  • 2022-12-23
  • 2021-12-10
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案