Visual Basic Code , VB.NET Code, VB Code
  Home   :  Code   :  Forums   :  Submit   :  Mailing List   :  About   :  Contact
A1VBCode Forums
Home      Members   Calendar   Who's On
Welcome Guest ( Login | Register )
      

Home » .NET Programming (VB 2010 or earlier) » ASP.NET » dataset


datasetExpand / Collapse
Author
Message
Posted 7/16/2010 3:54:54 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 7/21/2010 4:18:59 AM
Posts: 1, Visits: 9
Hi,

can anyone show me how to use for loop to get item(0) and item(1) out from a dataset ?

im using a for each loop to get item(0) in my loop. how am i going to change to loop in order for me to get my item(0) and (1) out?

[code]
For Each r As Data.DataRow In temp_sec.Tables(0).Rows
d = r.Item(0)
db1 = d.Minute
'db = d.Second
x += db1
y = r.Item(1)
list.Add(x, y)
Next
[/code]




AJ
Post #29430
« Prev Topic | Next Topic »


Reading This TopicExpand / Collapse
Active Users: 1 (1 guest, 0 members, 0 anonymous members)
No members currently viewing this topic.
Forum Moderators: Admin, Mod, Mark, Keithuk

PermissionsExpand / Collapse

All times are GMT -5:00, Time now is 11:06pm