Available in:
Apps (win)
Apps (char)
Reportwriter
RPC
Standalone PL
X
void field_color([ALL,]rgb[,[name|number] | [attribute,flag]]]) expr rgb string name int number, attribute, flag keyword ALL
| ALL | (optional) specifies that the color applies to all rows
(for multi-record layouts). Otherwise only the current row is affected.
|
| rgb | is the RGB sequence for all fields in the current window.
|
| name | specifies the name of an individual field to which changes
are applied.
|
| number | must evaluate to a valid field sequence number and
specifies the field (by number) to which changes are applied.
|
| attribute | specifies that all fields with specified attribute
have their colors set.
|
| flag | together with attribute specifies action to fields with the specified attribute. |
| RR | --- RED portion. Range 00 - FF. |
| GG | --- GREEN portion. Range 00 - FF. |
| BB | --- BLUE portion. Range 00 - FF. |
| OO | --- is the option. Where option is:
|
field_color(all,"FF000002");Sets all fields' background color to yellow and the foreground (text) color to blue for the current record (row).
field_color("FFFF00020000FF02");
Resets all fields' background color to the default values.
field_color("00000001");
Resets all rows fields' foreground (text) color to black.
field_color("0000000000000002");