Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Technical Questions
Message Icon Topic: how to make a var in a group sub change value? Post Reply Post New Topic
Author Message
nebchill26
Newbie
Newbie


Joined: 06 Nov 2008
Location: Philippines
Online Status: Offline
Posts: 20
Quote nebchill26 Replybullet Topic: how to make a var in a group sub change value?
    Posted: 23 Feb 2009 at 9:07pm
hi can anyone help me on this,im having a little trouble about the group sub report, what i need to do is to change the value of a variable depending on the group sub..

an example is like this:

i have a report that is group by name,when i grouped that report, it ranges from 1 to 6 pages per record,now the grouped field only shows on the first page,what i need to do is on that first page, a variable has  value,lets say its "1",then when it goes to the next page,the variable becomes "2",then just repeat the changing of variable for every record...can this be done?hope you understand what im trying to say,thanks in advance though
IP IP Logged
lockwelle
Moderator
Moderator


Joined: 21 Dec 2007
Online Status: Offline
Posts: 4372
Quote lockwelle Replybullet Posted: 25 Feb 2009 at 6:19am
Not quite sure what you are looking for exactly, but it sounds like you shared variables and formulae should help.
 
probably in you group header you would want to set the variable to 0 or 1, then in page header you can add 1 to the variable. shared variables are easy to use in the formula just declare them:
shared numbervar varName;
 
assignments use := notation
 
Hope this helps
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.031 seconds.