02-25-2010, 11:07 AM
I just wonder how you are getting 1255 in second row.
I have gone through the statements above and feel that it will always write 1255 in the the third row only unless you have not set the current row / commented your statements anywhere in betwenn again apart from the mentioned.
if the current row is not set at the beginning
first statement DataTable("MyCol","Action1")=123456 will always write at the first row
in second statement you will get the value as '1' for row
which you use to set the current row increasing with 1 i.e. now the current row is 2
in the next statement you are again setting the current row as next row, which means the current row is now 3
so the last statement will always write in row 3.
makes sense?
I have gone through the statements above and feel that it will always write 1255 in the the third row only unless you have not set the current row / commented your statements anywhere in betwenn again apart from the mentioned.
if the current row is not set at the beginning
first statement DataTable("MyCol","Action1")=123456 will always write at the first row
in second statement you will get the value as '1' for row
which you use to set the current row increasing with 1 i.e. now the current row is 2
in the next statement you are again setting the current row as next row, which means the current row is now 3
so the last statement will always write in row 3.
makes sense?