I need to figure out how to make concatenated text write to text as a list instead of being separted by commas.
This is my MEL command. Any ideas?
//Assessment Tab Start//
{ ConcatenateText(DOCUMENT.W1,DOCUMENT.W2,DOCUMENT.W3,DOCUMENT.W4,DOCUMENT.W5,DOCUMENT.W6,DOCUMENT.W7,DOCUMENT.W8,DOCUMENT.W9,DOCUMENT.W10,DOCUMENT.W11,DOCUMENT.W12,DOCUMENT.W13,DOCUMENT.W14,DOCUMENT.W15,DOCUMENT.W16,DOCUMENT.W17,DOCUMENT.W18,DOCUMENT.W19,DOCUMENT.W20,DOCUMENT.W21,DOCUMENT.W22,DOCUMENT.W23,DOCUMENT.W24,DOCUMENT.W25)}
{ fn ConcatenateText(strvar1,strvar2,strvar3,strvar4,strvar5,strvar6,strvar7,strvar8,strvar9,strvar10,strvar11,strvar12,strvar13,strvar14,strvar15,strvar16,strvar17,strvar18,strvar19,strvar20,strvar21,strvar22,strvar23,strvar24,strvar25)
{
local obsstr=""
//following line needs to be modified as you wish to separate strings
obsstr=
strvar1+""+
strvar2+", "+
strvar3+", "+
strvar4+", "+
strvar5+", "+
strvar6+", "+
strvar7+", "+
strvar8+", "+
strvar9+", "+
strvar10+", "+
strvar11+", "+
strvar12+", "+
strvar13+", "+
strvar14+", "+
strvar15+", "+
strvar16+", "+
strvar17+", "+
strvar18+", "+
strvar19+", "+
strvar20+", "+
strvar21+", "+
strvar22+", "+
strvar23+", "+
strvar24+", "+
strvar25
obsnow("CHIEF CMPLNT",obsstr)
}
replace "," with HRET
As Ken suggested, you can replace "," with HRET which will insert a hard return between each string element. You could also use "\r\n" which is the string equivalent to HRET. Incidentally "\t" creates a tab, so if you wanted the list to be indented beneath the heading, you could insert the "\t" in front of each string element.