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

来源:互联网 发布:部落冲突黑水罐数据 编辑:程序博客网 时间:2024/05/17 07:51
VB.NET源码-156个实用实例哦……<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
__________________________________________________________________________