Listboxes and appendtext

Hi, I’m trying to just create a simple email mailer that extracts data from a form.

I’m using designer 8.5

here is a snippet to explain what I’m doing


	Call rtitem.appendStyle(boldStyle)

	Call rtitem.appendtext(doc.customer(0))	

	Call rtitem.appendtext(".")

	Call rtitem.appendStyle(plStyle)

	Call rtitem.addnewline(1)  

	Call rtitem.appendtext("Agent Involved:  ")

	Call rtitem.appendStyle(boldStyle)	

	Call rtitem.appendtext(doc.agent(0) + " " + doc.agents_involved(0))

	Call rtitem.addnewline(1)	

	Call rtitem.appendStyle(plStyle)	

	Call rtitem.appendtext("Current Severity:  ")	

	Call rtitem.appendStyle(boldStyle)	

	Call rtitem.appendtext(doc.severity(0))

the problem is that doc.agents_involved field is a listbox, and it will only pull the first name from the list. How do I get it to pull all the names in the list? is there another rtitem.append function for listboxes?

Rob

Subject: Ignore

Subject: Try this

Call rtitem.appendStyle(boldStyle)Call rtitem.appendtext(doc.customer(0))

Call rtitem.appendtext(“.”)

Call rtitem.appendStyle(plStyle)

Call rtitem.addnewline(1)

Call rtitem.appendtext("Agent Involved: ")

Call rtitem.appendStyle(boldStyle)

Call rtitem.appendtext(doc.agent(0) + " " + doc.agents_involved(0))

Call rtitem.addnewline(1)

j = len(doc.agent(0))

’ if space does not work and line up use tab stops

for i = 1 to ubound(doc.agents_involved)

Call rtitem.appendtext(space(j) + " " + doc.agents_involved(I))

Call rtitem.addnewline(1)

next I

Call rtitem.appendStyle(plStyle)

Call rtitem.appendtext("Current Severity: ")

Call rtitem.appendStyle(boldStyle)

Call rtitem.appendtext(doc.severity(0))

Subject: Worked Thanks -

Worked perfect. I ended up removing the space part and left it as this so it lined the names up in a row.

Call rtitem.appendtext(" " + doc.agents_involved(I))