您的位置:首页 > 编程语言 > VB

[VB.NET]如何判断row里面没有数据

2008-12-29 23:45 375 查看



<script type="text/javascript"><!--
google_ad_client = "pub-8333940862668978";
/* 728x90, 创建于 08-11-30 */
google_ad_slot = "4485230109";
google_ad_width = 728;
google_ad_height = 90;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>

如何判断row里面没有数据
我已经判断好dataset里面有没有ROW了,可是如何判断ROW数据是不是空的呢?是不是NULL呢
If DsCustActiveJobs1.Tables.Count = 0 Or DsCustActiveJobs1.Cust_Active_Jobs.Rows Is Nothing Then

当把ROWS清空后,可是还是跳过这个IF
想判断ROWS里面数据是不是NULL;
__________________________________________________________________________
Dataset-> DataTable-> DataRow-> “Field”
先搞清楚这些吧!
你写的语句都不对!
---
判断dataset里面有没有ROW:ds.tables(0).rows.count> 0
__________________________________________________________________________
If not DsCustActiveJobs1.Tables(0).Row.Count is nothing then

.....

end if
__________________________________________________________________________
用ROWS.COUNT
__________________________________________________________________________
直接判断row is nothing 成立不成立
__________________________________________________________________________
dataset1.table(0).rows.count的值是不是为0
__________________________________________________________________________
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  vb.net dataset null
相关文章推荐