coldfusion - Change the List delimiter to something new -
i trying change delimiters of list. far have been successful, losing ground on 1 of actions.
the issue last element, v
. code never appends =""
last element. should not add comma it.
code:
<cfset foo="t,u,n,f,o,a,c,r,v"> <cfset msg = listchangedelims(foo,'="",')> <cfoutput>#msg#</cfoutput>
result:
t="",u="",n="",f="",o="",a="",c="",r="",v
i hope question makes sense.
that definition of delimiter. anyway, relatively easy fix, add last 1 yourself.
<cfset foo="t,u,n,f,o,a,c,r,v"> <cfset msg = listchangedelims(foo,'="",')> <cfset msg &= '=""'> <cfoutput>#msg#</cfoutput>
Comments
Post a Comment