There is a easy way to switch row colors
without any function
- Code: Select all Expand view
// Define alternating row colors
// Col 1
// ------
oLbx1:aCols[ 1 ]:bClrStd := ;
{|| IIF( AT(".0", STR( oLbx1:nArrayAt / 2 ) ) > 0, ;
{CLR_BLACK, COLOR1}, {CLR_BLACK, COLOR2} ) }
// Col 2
// ------
oLbx1:aCols[ 2 ]:bClrStd := ;
{|| IIF( AT(".0", STR( oLbx1:nArrayAt / 2 ) ) > 0, ;
{CLR_BLACK, COLOR1}, {CLR_BLACK, COLOR2} ) }
Regards
Uwe[/code]