Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Scanning fields in a dataset
Message
 
À
22/05/2013 09:20:37
Information générale
Forum:
ASP.NET
Catégorie:
Bases de données
Versions des environnements
Environment:
VB 9.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01574467
Message ID:
01574468
Vues:
46
>I need to scan all the fields in a dataset. I am assuming a For\Each syntax would apply. What would be the simplest way to do that?

I doubt that you need me to come up with this, but this at least compiles alright :)
    Sub Main()
        Dim ds As New DataSet
        For Each dt As DataTable In ds.Tables
            For Each dc As DataColumn In dt.Columns

            Next
        Next
    End Sub

If things have the tendency to go your way, do not worry. It won't last. Jules Renard.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform