Expression box
An expression is a one-line statement that generates a single, calculated result. Expressions can return a string, numeric, or Boolean value, and generate values automatically during instantiation.
Expressions can incorporate any decorative element available to the current library object
element, as well as a set of logical and mathematical operators, text strings, and numeric
characters. Decorative elements and functions display as tokens surrounded by curly brackets
as shown here:
{Element Name}
.The
Expression
box displays the expression as elements are added to it. The Expression
box includes these items:Name | Description |
|---|---|
Expressions window | A blank space in which the expression appears as elements are added to it. |
Validate | Click this button to validate the current expression for syntax and data type. If the expression is valid the box at the bottom of the window is shaded green and displays the message "passed". If the expression is not valid, the box is shaded red and displays an error message. |
Test | Click this button to test the current expression and display the result of the calculation or an error message if the expression is not valid. |
Save | Save the expression. The expression is added to the Saved portion of the Expressions tab and becomes available to any project opened in the Library Designer .Click OK in the Expression Builder to apply the saved expression to the current field. |
Result Type | Displays the data type of the expression.
|
Provide Feedback