> I know this is not the right forum for a basic C/C++
> question but I am writing and palm program that will
> have a list and I am going to make the lines in the
> list yellow/green/yellow and so on, But I dont know
> how to check to see if the row number is odd/even??
>
> I have the row number can someone please tell me how
> to check
Do
UInt8 foo;
foo = rowNum % 2;
if (foo)
{
// Odd
}
else
{
// even
}
Cheers,
-DGA
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/