MIKEV
asked on
Ok, where's the missing "("?
The browser says "Expected '('". Where? I can't see it:
for(y=0;y<oGrid.Rows.lengt h;y++) {
var row = oGrid.Rows.getRow(y);
for(x=0;x<row.Band.Columns .length;x+ +) {
var cell = row.getCell(x);
if Math.floor(x/2)*2 = 1 {
cell.Element.style.backgro undColor = "#E0FFFF";
cell.Element.style.color = "blue";
} else {
cell.Element.style.backgro undColor = "#FFFFFF";
cell.Element.style.color = "blue";
}
}
}
...or is it some syntax that makes it think I'm missing a bracket? JS is somewhat new to me so please, make me smack my forehead. :)
Thanks!
for(y=0;y<oGrid.Rows.lengt
var row = oGrid.Rows.getRow(y);
for(x=0;x<row.Band.Columns
var cell = row.getCell(x);
if Math.floor(x/2)*2 = 1 {
cell.Element.style.backgro
cell.Element.style.color = "blue";
} else {
cell.Element.style.backgro
cell.Element.style.color = "blue";
}
}
}
...or is it some syntax that makes it think I'm missing a bracket? JS is somewhat new to me so please, make me smack my forehead. :)
Thanks!
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
*smacks forehead* I gotta remember my old C programming. :) Thanks!
and
== is the equality comparison operator