GridSetCellColor
GridSetCellColor(oBrw,nRow,nCol,nBack,nFore)Sets cell colors in a historical eADVPL browse.
Overview
The historical signature takes object, row, column, background and foreground colors in that order. This fragment configures a callback for a previously validated cell. It does not imply record persistence or update semantics; availability in the current component requires confirmation. (Sources: refs. 1–1.)
Syntax
GridSetCellColor(oBrw,nRow,nCol,nBack,nFore)Commented example
#Include "Protheus.ch"
User Function Ed478()
// Later application: white background and black text.
Local bColor := {|oBrw,nRow,nCol| GridSetCellColor(oBrw,nRow,nCol,16777215,0)}
ConOut(ValType(bColor))
Return NilPrepares a visual rule without applying it. Under review: editorial example neither compiled nor run in Protheus. Check includes, release, RDD and context before testing.
- Validate coordinates and contrast; do not convey state through color alone.
- Under review: editorial example neither compiled nor run in Protheus. Check includes, release, RDD and context before testing.

Comments
There are no approved comments yet.
Sign in with Google or Microsoft to comment.