Question
Extra Comma in Dynamic Generated Lists
Is there an EASY minimal-code way to deal with extra an extra comma (or any delimeter) at the begining or end of a list when generating the list as follows?
Code:
<cfset ut_search = ut_search & "," & cResults[1].owner.id>
Result:
,6001,1206(I don't want the begining comma in the list)
Code:
<cfset ut_search = cResults[1].owner.id & "," & ut_search>
Result:
6001,1206, (I don't want the trailing comma in the list)
