Font.Strikethrough

Description

A number that specifies whether the text should be crossed out.

In the painter

Strikeout on the Font page in the Properties view.

Value

Values are:

Example

The following statement is for the Font.Strikethrough property of the emp_id, emp_fname, emp_lname, and emp_salary columns. The status column must be included in the data source even though it does not appear in the DataWindow object itself. The statement says that if the employee's status is L, which means On Leave, cross out the text in the control:

If(status = 'L', 1, 0)

An extra text control is included to the right of the detail line. It only becomes visible if the status of the row is L (see “Visible”).

Figure 23-14 is a portion of the resulting DataWindow object. It shows two employees who are on leave. The four columns of information for each are crossed out.

Figure 23-14: DataWindow with font strikethrough highlighting

The sample shows part of the DataWindow object that results when a conditional expression is applied to the Strike through property. Data is crossed out in for columns of any row that applies to an employee who is on leave. In the sample, two rows of data are crossed out, and each includes the words On leave at far right.