for a row-color-change with a function, You can use instead of < oBrw:bClrStd > the function :
ROW_COLORS( oBrw, nTCOLOR, nCOLOR1, nCOLOR2 )
It uses < oBrw:KeyNo > for the row-color-change not < ordKeyno() >.
It doesn' matter, if You use arrays or databases.
I don't know why, but the shown BMP's are all visible with this solution.
I don't know, if You still want to do something special, or just a row-color-change.
Just let me know.
- Code: Select all Expand view
....
ROW_COLORS( oBrw, CLR_BLACK, RGB(193,221,255), RGB(221,245,255))
....
FUNCTION ROW_COLORS( oBrw, nTCOLOR, nCOLOR1, nCOLOR2 )
Local aClrCol := {}
// nTCOLOR = TextColor
// nCOLOR1 = 1. Color
// nCOLOR2 = 2. Color
aClrCol := { { nTCOLOR, nCOLOR1 }, { nTCOLOR, nCOLOR2 } }
oBrw:bClrStd := { || aClrCol[ oBrw:KeyNo % 2 + 1 ] }
RETURN( NIL )
Regards
Uwe