SAP Knowledge Base Article - Preview

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


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:

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



SAP BusinessObjects Business Intelligence platform R2 ; SAP BusinessObjects Enterprise XI


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.