Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Macrosubstitution equivalent
Message
De
10/08/2004 12:27:57
Evans Carl
System Answers Consulting, Inc
Big Lake, Minnesota, États-Unis
 
 
À
10/08/2004 01:48:41
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
00931956
Message ID:
00932078
Vues:
29
>Hello, everyone
>
>I have a number of tables in an aspx page. I need to programatically add rows in those tables. Each table contains one year's data (12 rows). The number of years is set by user, by entering a value (270 months, let's say).
>
>I intend to add the rows in a loop. Problem is I need to know what table to touch based on loop's counter. If would be VFP, i would use an EVALUATE("Table" + int(counter/12) + 1) or something like that.
>
>How to do that in .NET? is there any better approach?
>
>Thanks.

Grigore,

I'm not a 100% sure what your trying to accomplish but I sure miss EVALUATE from Foxpro.

If I want to check values in a table I would do something like the following

Dim IchkTable As IEnumerator
IchkTable = adoRS.Tables.GetEnumerator()
Do While IchkTable.MoveNext

If IchkTable.Current("TableNameValue") Is Nothing Then
'do some row checking
End If

Loop
I hope this helps
¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø¤º°¤º°`°º¤ø¤º°¤º°
Carl Evans
CEO & President
System Answers Consulting, Inc.
MCSD .NET, ASP.NET, C#.NET, VB.NET,
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform