Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to define and access Global variable in a report

Status
Not open for further replies.

rdoshi

Programmer
Jul 16, 2001
6
NL
Hi,

Could anybody tell me that where to define global varible in a Crystal Report 8.0, so this variable will be available across the reprot in all formulaes.

I would appreciate any help in this.
 
Any formula defined eg.

Formula Pval :-
numbervar n;
if {?param) = "Y" then n := 1 else n:= 2

is available to any other formula within the main report

Formula Ptext :-
numbervar n;
"Parameter value supplied = "+totext(n)


If you are using subreports you need to use shared variables
There are several threads on that subject!


Hope this helps,

Geoff

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top