Color

Description

The color of text for text controls, columns, and computed fields; background color for the DataWindow object; line color for graphs.

In the painter

In the Properties view, Text Color on the Font property page; Color on the General property page; Line Color on the General property page.

Value

A number that specifies the color used for text.

For information on specifying colors, see “Specifying colors”.

Example

The following statement is for the Color property of the emp_id, emp_fname, emp_lname, and emp_birth_date columns:

If(month(birth_date) = month (today()), 255, 0)

If the employee has a birthday in the current month, the information for the employee displays in red (255). Otherwise, the information displays in black (0).

The Font.Underline property has the same conditional expression defined for it so that the example shows clearly on paper when printed in black and white.