Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Loop Until End of Records
Message
De
16/03/2004 11:52:34
 
 
À
16/03/2004 11:26:56
Mike Cole
Yellow Lab Technologies
Stanley, Iowa, États-Unis
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
00886713
Message ID:
00886732
Vues:
17
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform