Programming with Reflection

image\rwnprg32.gif GetFieldColor method

 

Syntax Color = object.GetFieldColor(Row, Column)

 

Description

Returns the color or attribute for a field in the host application.

Arguments

Row Argument type: Integer
The row number at the beginning of, or within, the field. You can use rcMouseRow to specify the row where the mouse was last clicked.

Column Argument type: Integer
The column number at the beginning of, or within, the field. You can use rcMouseCol to specify the column where the mouse was last clicked.

Return

Color Return type: Enumeration
The host attribute to which the color is mapped. The return is a numerical value that is equivalent to a predefined constant. The values are:

Value

Constant

0

rcHostBlue

1

rcHostRed

2

rcHostPink

3

rcHostGreen

4

rcHostTurquoise

5

rcHostYellow

6

rcHostWhite

7

rcStatusLine


For 5250 sessions, there are three additional values:

Value

Constant

16

rcMessageLine

17

rcErrorLine

18

rcSysRequest


For 3270 sessions, there are eight additional values based on the possible combinations of these three host attributes:

· protected vs. unprotected

· alphanumeric vs. numeric

· normal vs. intense


These values are:

Value

Constant

8

rcProtNormAlpha

9

rcProtNormNum

10

rcProtHighAlpha

11

rcProtHighNum

12

rcUnprotNormAlpha

13

rcUnprotNormNum

14

rcUnprotHighAlpha

15

rcUnprotHighNum

 

image\jump.gif Keyword Index

image\popup.gif Related Topics

image\popup.gif Reflection products that use this command