Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Detecting empty cursor
Message
De
21/01/2005 15:10:13
 
 
À
21/01/2005 14:47:50
Information générale
Forum:
ASP.NET
Catégorie:
Bases de données
Divers
Thread ID:
00979412
Message ID:
00979420
Vues:
30
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform