Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Hi all, I need to take out the las

Status
Not open for further replies.

Albert3162

Programmer
Jul 13, 2001
18
US
Hi all,
I need to take out the last ","after last digit
from my output as a(1,2,3,4,)
need to be (1,2,3,4)
 
Hey Albert,

If your string is in the format "(1,2,3,....10,)" then this should work.

<cfset x=&quot;(1,2,3,4,)&quot;>
<cfset y=&quot;#left(x,len(x)-2)#)&quot;>

Hope this helps,
GJ
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top