Code Comments
Programming Forum and web based access to our favorite programming groups.Ok, no more confusing strings with lists... Would there be any divantage if you turn the string into a list first and join the result into a string? proc wordsToTitle {string} { foreach item [split $string] {lappend output [string totitle $item]} return [join $output] } It doesn't remove spaces and it's still faster than subst/regsub.
Post Follow-up to this messagePowered by vBulletin
Copyright 2000-2006 Jelsoft Enterprises Limited.