Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Array

Status
Not open for further replies.
Dec 16, 2008
83
GB
Crystal 2008

Hi, i've got a field called group ID which sits at details level. I have a group above that called Name. What i'd like to do is create a field in that group with each unique number of group id in a string or array. ie:

Gp Smith 1111, 2222, 3333
D Smith 1111
D Smith 2222
D Smith 3333

Would an array have to be created to be able to do this? If so, how would i go about doing it? If not an array any other ideas?

Thanks for your help
 
YOu would need a string variable in the Group Footer.

In Gp Header
@reset
whileprintingrecords;

global stringvar list:='';

In details
@eval

whileprintingrecords;

global stringvar list:= list &' '& {IDField}

In Grp Footer
@display

whileprintingrecords;

global stringvar list;

This can not be displayed in header as it will not have evaluated details at that point.

Ian
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top