Welcome to collectivesolver - Programming & Software Q&A. A website you can trust. All programs tested and works. Contact: aviboots(AT)netvision.net.il
Bonsai Trees

Liquid Web Managed Dedicated Server: RAID 1 SSD with 16GB of RAM minimum! 24/7 On-Site Heroic Support! Industry-Leading SLA!

BlueHost Web Hosting

Ecommerce Software - Best Ecommerce Platform Made for You - Free Trial

Ecommerce Software - Best Ecommerce Platform Made for You - Free Trial

getflywheel wordpress hosting


Liquid Web Cloud VPS Hosting

8,764 questions

12,137 answers

573 users

How to safely create and dispose a DataTable in VB.NET

1 Answer

0 votes
Module Module1

    Sub Main()

        Using table As New DataTable()

            table.Columns.Add("ID", GetType(Integer))
            table.Columns.Add("Name", GetType(String))
            table.Columns.Add("Salary", GetType(Double))

            table.Rows.Add(123, "Ajax", 23492)
            table.Rows.Add(543, "Arrow", 31871)
            table.Rows.Add(876, "Axel", 16878)
            table.Rows.Add(342, "Everly", 46123)

            For Each row As DataRow In table.Rows
                For Each item As String In row.ItemArray
                    Console.Write("{0} ", item)
                Next
                Console.WriteLine()
            Next

        End Using

    End Sub

End Module

' run:
' 
' 123 Ajax 23492
' 543 Arrow 31871
' 876 Axel 16878
' 342 Everly 46123

 




answered Sep 29 by avibootz
...