Name

selected — Return a true if the record is in the selected set, false otherwise.

Syntax

selected()
selected(selection)
              

The SELECTED function has the following argument.

selection

(Optional) An optional argument that provides a selection set to check for a selected value.

Description

This function will return a true or false depending if the current record is a member of the selecte set.

In the first form, the function will test the default selection set. If the current record is in the default selection set then return true, otherwise return false.

In the second form the current row is tested in the provided selection set.

Examples

Formula

Description

Result

selected()Return true if the current record is selected in the default selection set, otherwise return false. boolean
selected(selection(slope = 1))Build a selection set based on the expression 'slope = 1', and return true if the current record is selected in this selection set, otherwise return false. boolean