Calculating Values in Expressions

Calculating Values in Expressions

An expression is made up of variables, functions, and field values from databases. A value can be calculated and either printed or displayed in a report.

Code in an Expression

If you know the programming language of a report, you can include code when calculating the value of an expression. Use curly braces (“{“ and “}”) to separate code from other text. When utilized, the result of a calculation will be converted into a string.

Value = {5 + 3}

The result of this expression in the report:

Value = 8

Multiple Code Insertions

  There is no limit to the number of code insertions permitted in an expression.

A = {7 + 2}, B = {6 + 1}

The result in the report:

A = 9, B = 7

Nested Code Insertions

Nesting of code sections in an expression is not permitted. As an example, the following expression will result in the calculation failing:

Value = {5 + 3 + {2 + 1}}
    • Related Articles

    • Multi Line Expressions

      Multiple lines of text can be produced in a report by a single expression. To create a multi-line expression, insert a line feed before any new line. To do this, press the Enter key at the appropriate place in the code editor. There is no limit to ...
    • Using Expressions in the Rich Text Editor of Report Designer

      The articles in this section of the Knowledge Base involve working with Rich Text for display in your reports. To learn more about the Rich Text editor, and how to access this section within the Report Designer, see An Introduction to the Rich Text ...
    • Understanding Boolean Values Formatting in the Report Designer

      The articles in this section of the Knowledge Base involve Text Formatting for display in your reports. To learn more about Text Formatting and how to access this section within the Report Designer, see Understanding Text Formatting in the Report ...
    • Understanding the Text Editor in Report Designer

      The Text Editor allows users to edit text components in Report Designer. This ability to modify text components allows for better customization of report appearances. Expression Tab Fig. 01 – Expression Tab (Text Editor) This tab has the following ...
    • Text Expressions

      Text expressions are the simplest expressions. Here are some examples: SampleText 54321 Example All of the expressions above are strings, and there are no calculations. These expressions would be printed as they have been defined. These types of ...
    • Recent Articles

    • Microvellum Release Notes | Build 25.2.0317.641

      The following release notes apply to Microvellum build 25.2.0317.641 Product Prompts UI Overhaul The Microvellum Product Prompts interface has been redesigned to improve efficiency and usability, giving users greater control over multiple features of ...
    • Microvellum Processing Center System Requirements

      This document lists both the minimum and recommended system configuration for operating Microvellum's standalone Processing Center application. For more information about the standalone application, see the Microvellum Processsing Center Application ...
    • Microvellum Release Notes | Patch 25.2.0227.641

      The following release notes apply to Microvellum build 25.2.0227.641 Processing Center Fixes Multiple fixes and updates were applied to the standalone Processing Center application to improve usability. Add New Configuration An update has been ...
    • Microvellum Foundation Library Release Notes | Build 26.0220

      The following release notes apply to the Microvellum Foundation Library build 26.0220. Additions Added DTC Magic Pro and Magic Star Ultra drawer systems. Magic Pro Items added in hardware file 300 and 600 lengths for all drawer heights. Add 60kg ...
    • Microvellum Release Notes | Build 25.2.0223.641

      The following release notes apply to Microvellum build 25.2.0223.641. Add 2D Elevation Tokens to 3D Drawings Fig. 1: The new 2D Elevation setting. A popularly requested feature by the community has been added to the Microvellum software: the checkbox ...