user2535
جمعه 17 مهر 1388, 02:36 صبح
با سلام
به چه صورت مي تونم كليه اطلاعات يك table را به به يك آرايه انتقال دهم
با تشكر
anooshiran
جمعه 17 مهر 1388, 21:50 عصر
سلام دوست عزیز
کد زیر یک نمونه از ریختن رکوردهای table به array اسن
Dim dt As New DataTable
dt.Columns.Add("COl1")
dt.Columns.Add("COl2")
dt.Columns.Add("COl3")
dt.Rows.Add(1, 10, "asdas")
dt.Rows.Add(2, 20, "wqweq")
dt.Rows.Add(3, 30, "ffghf")
dt.Rows.Add(4, 40, "nbbmb")
dt.Rows.Add(5, 50, "uouou")
Dim arr As New ArrayList
For Each row As DataRow In dt.Rows
arr.Add(row)
Next
vBulletin® v4.2.5, Copyright ©2000-1404, Jelsoft Enterprises Ltd.