SAP Knowledge Base Article - Preview

1196820 - Variable scope best practices in Crystal Reports 10 to CR 2008

Symptom

In Crystal Reports versions 10 through 2008, variable names declared as "shared" can be used in all three of these scope levels without interferring with the other. The variables can even be declared in the same formula. For example:

WhilePrintingRecords;
Local NumberVar x := 0;
Global NumberVar x := 10;
Shared NumberVar x := 20;
NumberVar x := 30; // automatically assumes "global" scope


Read more...

Product

SAP BusinessObjects Business Intelligence platform R2 ; SAP BusinessObjects Enterprise XI

Keywords

asdf , 2690987 , KBA , BI-BIP , Business intelligence platform , Problem

About this page

This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP for Me (Login required).

Search for additional results

Visit SAP Support Portal's SAP Notes and KBA Search.