Method XbpCellGroup():setCellColor() Foundation

Changes the foreground and/or background color of a cell.

Syntax
:setCellColor( <nRowPos>, [<nColorFG>], [<nColorBG>], [<lRepaint>] ) --> lSuccess
Parameters
<nRowPos>
<nRowPos> is a numeric value indicating the ordinal row position of the cell whose color is changed.
<nColorFG>
This parameter specifies the foreground color of a cell. #define constants prefixed with GRA_CLR_ or XBPSYSCLR_ must be used for <nColorFG>. When the parameter is omitted, the foreground color remains unchanged.
<nColorBG>
This parameter specifies the background color of a cell.
<lRepaint>
<lRepaint> specifies whether or not the cell is immediately re-displayed when the method returns. The default value is .T. (true) and the cell is automatically re-displayed.
Return

The method returns .T. (true) when the color of a cell is set, or .F. (false) in case of a failure.

Feedback

If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.