- 2 minutes to read
An expression is a string that is parsed and processed to evaluate a value. Expressions consist of field names, constants, operators, and functions. Field names are wrapped in square brackets.
"[Quantity] * [UnitPrice] * (1 - [BonusAmount])"
"[FirstName] + ' ' + [LastName]"
"[Country] == 'USA'"
"[OrderDate] > #8/16/1994# AND [Quantity] > 20"
You can use operators, functions, and constants in your expressions.
Refer to the CustomFunctions class description for information on how to implement custom expression functions in reporting applications.
See the Data Binding Modes topic for details on the available binding modes.
The Report Designer's Expression Editor provides functions, operators, data source fields, report elements, constants, and variables to construct expressions.
The Expression Editor highlights an expression's syntax and supports intelligent code completion (it suggests functions and available data elements as you type).
The Expression Editor displays all the errors it finds in the specified expression.
The FilterString Editor provides a visual interface where you can use an unlimited number of conditions and combine them with logical operators to create filter criteria. You can also switch to the Text mode and type a filter string.
The FilterString Editor highlights an expression's syntax and supports intelligent code completion (it suggests functions and available data elements as you type).