Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Detecting empty cursor
Message
From
21/01/2005 15:10:13
 
 
To
21/01/2005 14:47:50
General information
Forum:
ASP.NET
Category:
Databases
Miscellaneous
Thread ID:
00979412
Message ID:
00979420
Views:
31
This message has been marked as the solution to the initial question of the thread.
Michel,

I think you mean "if loData is a Dataset"....loDT is your data adapter.

If the query returns no records, you can probably determine that by checking for the table count or row count of loData (depending on how many tables were in your result set) example... if (MyDataSet.Tables.Count>0)...or if(MyDataSet.Tables[0].Rows.Count > 0)

Not to judge naming conventions, but I would probably change your variable name for the adapter to loDA...using 'dt' might make another programmer believe it's referring to a datatable.

Kevin
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform