>>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
Sorry that should be
> If NOT IchkTable.Current("TableNameValue") Is Nothing Then
> 'do some row checking
> End If
¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø¤º°¤º°`°º¤ø¤º°¤º°
Carl Evans
CEO & President
System Answers Consulting, Inc.
MCSD .NET, ASP.NET, C#.NET, VB.NET,