Mike Waller
asked on
remove comma from end of list
ok, I have..
value1,value2,
how would I remove the comma from the end of the list in coldfusion?
value1,value2,
how would I remove the comma from the end of the list in coldfusion?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
... BTW, in case you happen to be generating the list yourself you can use list functions to avoid the trailing comma in the first place.
<cfset list = "">
<cfset list = listAppend(list, "value1")>
<cfset list = listAppend(list, "value2")>
...
<cfset list = "">
<cfset list = listAppend(list, "value1")>
<cfset list = listAppend(list, "value2")>
...
ASKER
Ok, thanks _agx_
ASKER