Border

Description

The type of border for the control.

In the painter

Border on the General page in the Properties view.

Value

A number that specifies the type of border. Values are:

Example

The following statement specifies that if the person represented by the current row has a status of L (on leave), the status column displays with a Shadow box border:

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

In this example, the condition is applied to the Border property of the status column. Figure 23-10 is a portion of the resulting DataWindow object. Notice that the Leave status displays with a Shadow box border.

Figure 23-10: DataWindow with a conditional Shadow box border

The sample shows what happens when the condition of on leave status is applied to the Border property of the status column. In the sample Data Window object, for rows where the Status displayed is On Leave, a shadow box border outlines the word Leave.

NoteAbout the value L and the value On Leave The status column uses an edit style. The internal value for on leave is L and the display value is Leave. The conditional expression references the internal value L, which is the actual value stored in the database. The DataWindow object shows the value Leave, which is the display value assigned to the value L in the code table for the Status edit style.