Tips and Tricks
 Crystal Reports Forum : Crystal Reports 9 through 2020 : Tips and Tricks
Message Icon Topic: Date Increments - URGENT!! Post Reply Post New Topic
<< Prev Page  of 3
Author Message
asadiq
Newbie
Newbie


Joined: 16 Nov 2009
Online Status: Offline
Posts: 16
Quote asadiq Replybullet Posted: 18 Nov 2009 at 8:40am
Its done!!!!!!
It is finally working.
 
Thank you so much for all your help. Really great!!
:)
IP IP Logged
asadiq
Newbie
Newbie


Joined: 16 Nov 2009
Online Status: Offline
Posts: 16
Quote asadiq Replybullet Posted: 18 Nov 2009 at 9:05am
it is the next phase now.
 
To get the date value rather than text value so i can display summaries for other fields based on this date grouping
IP IP Logged
lockwelle
Moderator
Moderator


Joined: 21 Dec 2007
Online Status: Offline
Posts: 4372
Quote lockwelle Replybullet Posted: 19 Nov 2009 at 6:15am
if you just need the date, since it is a datetime array...
shared datetimevar aDate;
 
aDate[1];
 
you can of course use a variable...if this is something that is going to be grouped on, I would have another shared variable running that is the index to the aDate array, like:
 
shared datetimevar array aDate;
shared numbervar aDateIndex;
 
aDate[aDateIndex];
 
then in you group footer or somewhere increment aDateIndex like;
shared numbervar aDateIndex;
aDateIndex := aDateIndex + 1;
 
 
I don't know if CR will group on an array like this, it probably will as long as the array is 'defined'/populated before the grouping takes place (like in the report header as it is only called once per report.
 
HTH
IP IP Logged
<< Prev Page  of 3
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.047 seconds.