I'm new to Crystal Report and I can't figure out how to pass a shared array variable to my main report from a subreport. (Please let me know if I have created my array variable in my subreport wrong since I'm kind of guessing).
In the subreport I have created a formula to initialize the array and load it...
Formula/Variable: Vendor_Load
shared stringvar array vendor_load;
shared numbervar i:=1;
whileprintingrecords;
Redim preserve vendor_load[recordnumber];
vendor_load[recordnumber] := {VENDOR.Vendor_Name}
I placed this variable in the detail section of the report
Then I created another formula/variable to print the variable
Formula/Variable: Vendor_Print
Shared stringVar array vendor_load;
WhilePrintingRecords;
Join (vendor_load, ", ")
I had to place this in the report footer in order for my entire list to show up.
Now all I want to do is pass the list of vendor names to my main report.... but I'm not sure how to do that. It seems to be different than just passing a single variable.
I placed this in the detail section and report footer and 0 is diplayed in my main report....
Main Variable: Vendor_Print
shared stringVar array Vendor_Load;
whileprintingrecords;
What am I doing wrong?

Any help is much appreciated - Thanks!
Edited by HeidisMom - 09 Jul 2012 at 12:20pm