A neat valueList() trick....

2007-03-05 Thread Will Tomlinson
I like using valuelist(), but it messes up the display because it crunches the list items together, no spaces after the comma. So I tried this and it worked. Had no idea... cfset voicingList = ValueList(getVoicings.voicingname, , ) Just thought I'd post it in case anyone else ran into the

Re: A neat valueList() trick....

2007-03-05 Thread Matt Quackenbush
Just a cautionary word: that works wonderfully for straight output, but if you were to do say a listFind() on the altered list, CF wouldn't find the item you were searching for unless you prepended it with a space (e.g. listFind(myList, ' myString') ). But for output, it certainly is a whole lot