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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Horizontal details 1

Status
Not open for further replies.

Futang44

Instructor
Dec 8, 2008
5
US
I am trying to list names horizontally,
example, instead of:
bob
fred
bill
ned
I want :
bob, fred, bill, ned, etc.

Does anyone know how?
I will be using just one table.
 
Futang44

In the Section Expert, for the Detail Section is an option
to use "Multiple Columns". Check it out.

solmskid
 
Is there a way to set a variable width between the columns so the field may be concatenated?
 
Futang44

I have not used the option that much to give you a valid answer. But what I would do if you have to concatenate fields (first name, last name) is create a formula that does the concatenation and use the formula in the detail.

solmskid
 
what I am attempting to do is concatenate the same field for multiple records.
 
Hello,

Create three formulas:
@ConacatenateFields
stringvar vList := vList + table.field + ', '

Place it in the details, suppress it.

@DisplayList
stringvar vList;
left(vList, len(vList)-2)

Place it in the group footer

@ResetList
stringvar vList := ''

Place it in the group header.

Daniela
 
when you are in the Section Expert and select the multiple column option it adds a "layout" tab which allows you to customize the format.
 
I forgot a detail: each formula needs to have start with the line whileprintingrecords:

@ConacatenateFields
whileprintingrecords;
stringvar vList := vList + table.field + ', '

Place it in the details, suppress it.

@DisplayList
whileprintingrecords;
stringvar vList;
left(vList, len(vList)-2)

Place it in the group footer

@ResetList
whileprintingrecords;
stringvar vList := ''

Place it in the group header
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top