Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Technical Questions
Message Icon Topic: Dynamic array dropping total Post Reply Post New Topic
Author Message
katfoxus
Newbie
Newbie
Avatar

Joined: 17 Oct 2011
Location: United States
Online Status: Offline
Posts: 19
Quote katfoxus Replybullet Topic: Dynamic array dropping total
     Posted: 15 Mar 2013 at 4:20am
I have a dynamic array
 
shared numbervar array myarray;
shared numbervar array myarray2;
shared numbervar am;
if Sum (table.field}, {table.datetime}, "daily") = 0 then
(redim myarray[1];
redim myarray2[1];
am := 0);
if NOT({table.field} in myarray or 
{table.field} in myarray2) then
(am := am + 1;
if am <= 1000 then (Redim Preserve myarray[am];myarray[am] := Sum ({table.field}, {table.datetime}, "daily"));
if am in 1001 to 2000 then (Redim Preserve myarray2[am-1000];myarray2[am-1000] := Sum (({table.field}, {table.datetime}, "daily"));
);
if am <= 1000 then myarray[am]
else if am in 1001 to 2000 then myarray2[am-1000]
 
I am using the same dynamic array in other parts of my report and have no isues. However, with this array it is randomly dropping the daily totals even though there is data in the field. Has anyone ever had this happened before?
IP IP Logged
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