Usina BRAdvPL Guide
Sign in
← All topics
FUNCTIONUnder review

GridSetCellColor

GridSetCellColor(oBrw,nRow,nCol,nBack,nFore)

Sets cell colors in a historical eADVPL browse.

GridSetCellColorAdvPL
01 · OVERVIEW

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.)

02 · SYNTAX

Syntax

GridSetCellColor(oBrw,nRow,nCol,nBack,nFore)
03 · PRACTICAL EXAMPLE

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 Nil
Expected result

Prepares a visual rule without applying it. Under review: editorial example neither compiled nor run in Protheus. Check includes, release, RDD and context before testing.

BEST PRACTICES
  • 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.

Related content

REFERENCES
  1. Guia de Referência eADVPL (histórico). §3.18. Accessed on 2026-10-27.
Status
Under review
Page created on
Last reviewed on
Original language
Portuguese
Reviewed by
Usina.BR
0 approved comment(s)

Comments

There are no approved comments yet.

Sign in with Google or Microsoft to comment.

Powered by Usina Docs · Alpha