Writing Code
 Crystal Reports Forum : Crystal Reports .NET 2003 : Writing Code
Message Icon Topic: Shared variable between two Group Footers Post Reply Post New Topic
Author Message
computermike
Newbie
Newbie


Joined: 02 Sep 2008
Location: United States
Online Status: Offline
Posts: 14
Quote computermike Replybullet Topic: Shared variable between two Group Footers
    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.
 
 
IP IP Logged
comatt1
Senior Member
Senior Member
Avatar

Joined: 19 May 2011
Online Status: Offline
Posts: 337
Quote comatt1 Replybullet Posted: 25 Oct 2012 at 7:50am
GLOBAL not SHARED
IP IP Logged
Post Reply Post New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum



This page was generated in 0.016 seconds.