Report Design
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Report Design
Message Icon Topic: Arrays used in selection in subreports Post Reply Post New Topic
Author Message
ClydeMoe2020
Newbie
Newbie


Joined: 05 Oct 2010
Online Status: Offline
Posts: 2
Quote ClydeMoe2020 Replybullet Topic: Arrays used in selection in subreports
    Posted: 05 Oct 2010 at 9:31am

Green Crystal user here.  Need an assist in creating an array in the main and passing it to the sub as a selection parameter.  The goal here is to pull a random sample of 377 records sorted one way.  Pass to subreport as an array or whatever and use in the selection in the subreport.

//This is what I have so far in the details section
WhilePrintingRecords;
Global StringVar Array Record_Names;
Global Numbervar Counter;
 
if ((Counter) <= 376)
then
(
Counter := (Counter+1);
Redim preserve Record_Names[Counter];
Record_Names[Counter] := {TABLE.RECORD_NAME};
Record_Names[Counter]
)
else
"";
 
In terms of passing it to the sub, I've read some things about using the join function to convert array to a string and then using the split function in the selection formula in the sub but still not really sure...  Also, do I need to surpress the details selection to limit the sample to 377?  Anyway, any guidance would be extremely appreciated...
ClydeMoe
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.018 seconds.