Print Page | Close Window

Shared variable between two Group Footers

Printed From: Crystal Reports Book
Category: Crystal Reports .NET 2003
Forum Name: Writing Code
Forum Discription: .NET 2003 programming API, report integration
URL: http://www.crystalreportsbook.com/forum/forum_posts.asp?TID=16245
Printed Date: 19 Apr 2024 at 12:28am


Topic: Shared variable between two Group Footers
Posted By: computermike
Subject: Shared variable between two Group Footers
Date Posted: 20 Apr 2012 at 1:33pm
I have two group footers, GF1d and GF1e
In GF1d section expert I have Newpage after checked
 
 
In GF1d I have placed a text box with the formula @ac, here is the formula for @ac..
 
WhilePrintingRecords;
shared StringVar PN;
PN:= totext(PageNumber);
 
 
In GF1e I have a text box with the formula @ad, the formala for @ad is...
 
shared StringVar PN;
PN
 
 
 
When the @ac formula renders in the report GF1d it returns 3.  When the @ad renders it returns 4. 
 
Why does @ad return 4, I am not resetting variable.  I want to set the value in @ac and return the same value in @ad.  So it should return 3, not 4.
 
Have tried many variations burt can't get it to work.  Please help.
 
 



Replies:
Posted By: comatt1
Date Posted: 25 Oct 2012 at 7:50am
GLOBAL not SHARED



Print Page | Close Window