> I like the idea of abstracting this into a function a lot (I loves me > functions) but using the same principle as the last message I posted (look > for the difference in length after you remove "char") should make this > simpler:
Yeah that sounds simpler. The first "or" did as well... <cfset lst = "1,2,3,,5,,,,9,10" /> #listlen(replace(lst, ',', ', ', 'all'))-1# I didn't see the post where you said that about the length difference or I wouldn't have bothered :-) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| ColdFusion is delivering applications solutions at at top companies around the world in government. Find out how and where now http://www.adobe.com/cfusion/showcase/index.cfm?event=finder&productID=1522&loc=en_us Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:293788 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

