Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Loop Until End of Records
Message
From
16/03/2004 11:52:34
 
 
To
16/03/2004 11:26:56
Mike Cole
Yellow Lab Technologies
Stanley, Iowa, United States
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
00886713
Message ID:
00886732
Views:
16
You don't really need to mess with the CurrencyManager to loop through all the rows in a table. You simply need code like this:
Dim i As Integer
For i = 0 To MyTable.Rows.Count - 1
   ' code you need to mess with each row: MyTable.Rows(i)
Next i
-or-
Dim row As DataRow
For Each row In  MyTable.Rows
    ' code you need to mess with each row: row
Next row
Note that I used a converter to convert C# code to VB code, so I hope the VB syntax is correct.

~~Bonnie


>Hello,
>I have a table that I am connecting to, and I want to do something to ALL records in that table. I am using a Currency Manager. Basically I want to perform a loop until end of the table. Can anybody help me?
>
>Sorry such a Newbie question, but what can I say.... I am a Newbie.
>
>MAC
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform