<<

Contents

Search

>>

 

REPORT_CHANGE_FIELD_COLOR

 

 

Function

 

 

Syntax:

REPORT_CHANGE_FIELD_COLOR(<Block>, <Row>, <Column>, <Foreground Red>, <Foreground Green>, <Foreground Blue>, <Background Red>, <Background Green>, <Background Blue>)

 

<Block>

= <STRING-EXPRESSION>

<Row>

= <NUM-EXPRESSION>

<Column>

= <NUM-EXPRESSION>

<Foreground Red>

= <NUM-EXPRESSION>

<Foreground Green>

= <NUM-EXPRESSION>

<Foreground Blue>

= <NUM-EXPRESSION>

<Background Red>

= <NUM-EXPRESSION>

<Background Green>

= <NUM-EXPRESSION>

<Background Blue>

= <NUM-EXPRESSION>

 

Meaning:

Changes the color of a report field.

 

The function has to be called while a report is executed.

 

<Block> specifies the block which contains the report field:

 

<Block>

Refers to

"H" or "K"

Head block

"D"

Data block

"W"

Group Change Block

"E"

Report Ending Block

"F"

Foot block

 

<Row> and <Column> specify the position within the block.

 

If <Foreground Red> < 0 or <Foreground Green> < 0 or <Foreground Blue> < 0 the foreground color is not changed.

 

If <Background Red> < 0 or <Background Green> < 0 or <Background Blue> < 0 the background color is not changed.

 

REPORT_CHANGE_FIELD_COLOR returns the following results:

 

1

No error

-1

Report field not found

-2

No report is currently executed

 

Parameter:

Block

Block which contains the report field

Row

Row of the report field

Column

Column of the report field

Foreground Red

Red value

Foreground Green

Green value

Foreground Blue

Blue value

Background Red

Red value

Background Green

Green value

Background Blue

Blue value

 

Sample:

/* Change background color of the report field in the head block

/* on position 2,14 to yellow

 

H% = REPORT_CHANGE_FIELD_COLOR("H",2,14,-1,-1,-1,255,255,0)

IF H% <> 1 THEN ...error... ENDIF

 

See also:

REPORT

REPORT_CHANGE_JUSTIFY