Use the scope operator to declare the availability of variables in the report. If the scope operator is not specified then Global is used.
The following scopes are available in Crystal syntax:
// Formula "Initialize" Global NumberVar x; x := 0;
// Formula "Summarize" Global NumberVar x; x := x + 1;
// Formula "Print Value" Global NumberVar x; x;