Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Scanning fields in a dataset
Message
 
To
22/05/2013 09:20:37
General information
Forum:
ASP.NET
Category:
Databases
Environment versions
Environment:
VB 9.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01574467
Message ID:
01574468
Views:
47
>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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform