Clear the value of a variable

  1. Drag the snippet Special Objects > Clear Calculation Variable to the report template.

  2. The Clear Calculation Variable dialog opens.

  3. Select the variable for which you want to clear the value.

  4. If no variables are listed, you do not use any variables in your template.

  5. Click OK.

  6. An invisible text field is added to the template. As a value, it contains the expression to clear the value of the variable. For example, =Code.DVL.Clear("myVar")

    The text shown in the invisible text box is simply the return code of the clear function. As the field is invisible, nothing will be shown in the report preview.

    Below this invisible text box, the system will use the cleared value of the variable.