Hello
How can I compare rows in a loop?
for e.g
if column data for row 1 is: 525
and column data for row 2 : 800
I want to divide row 1 by row 2.
| SitePoint Sponsor |


Hello
How can I compare rows in a loop?
for e.g
if column data for row 1 is: 525
and column data for row 2 : 800
I want to divide row 1 by row 2.
Initialize a variable with a row.
Start loop (WHILE there is a new row)
Compare new row to old row.
Set old row variable to hold new row.
End loop.
Never grow up. The instant you do, you lose all ability to imagine great things, for fear of reality crashing in.


Hi,
How would I "Initialize a variable with a row."?
Thanks
same way you retrieve a row in your while....
Never grow up. The instant you do, you lose all ability to imagine great things, for fear of reality crashing in.
Bookmarks