crystal-reports Shared variables

Help us to keep this website almost Ad Free! It takes only 10 seconds of your time:
> Step 1: Go view our video on YouTube: EF Core Bulk Insert
> Step 2: And Like the video. BONUS: You can also share it!

Syntax

  • Shared NumberVar x;
  • Shared StringVar y := "Hello, World!";

Remarks

Shared variables allow values to be used at any point in the processing of the report. Similar to a global variable, the shared values can also be accessed by subreports. This allows for a more direct method of comparison and allows the developer to circumvent the strict nature of the top-to-bottom report evaluation.

A shared variable can be defined, set, or recalled in any valid formula field. Their most common use is to store information that would otherwise be forgotten or inaccessible at a later stage in the report.



Got any crystal-reports Question?