Font.Italic

Description

A number that specifies whether the text should be italic.

In the painter

Italic on the Font page in the Properties view.

Value

Values are:

Example

The following statements are specified for the Font.Italic, Font.Underline, and Font.Weight properties, respectively. If the employee has health insurance, the employee's information displays in italics. If not, the employee's information displays in bold and underlined:

If(bene_health_ins = 'Y', 1, 0)
If(bene_health_ins = 'N', 1, 0)
If(bene_health_ins = 'N', 700, 400)

Statements are specified in this way for four controls: the emp_id column, the emp_fname column, the emp_lname column, and the emp_salary column. In the resulting report, those with health insurance display in italics. Those without health insurance are emphasized with bold and underlining:

The sample shows the Data Window object that results when statements are specified for four controls: the emp _ i d column, the emp _ f name column, the emp _ l name column, and the emp _ salary column. In rows where the health insurance check box is selected, the four controls display in italics. In rows with health insurance unchecked, they are bold and underlined.