This is just a quick little trick for outputting a list of items with proper spacing. You can use ColdFusion ValueList() using a delimiter that has both a comma AND a space in it: ", ". While this is not really a valid delimiter, which is defined as one character, the ValueList() method will still use both characters when creating the delimited list. Now, you have a nicely spaced list.
Launch code in new window » Download code as text file »
Download Code Snippet ZIP File
Comments (1) | Post Comment | Ask Ben | Permalink | Other Searches | Print Page
XStandard Support Weighs In On The Color Coding Issue
Finding Values In A ColdFusion Array Using Java - And Other Cool Stuff
I love CF's list functions. :)
Of course, for the other sort of lists, you can also do this:
<ul><li>#ValueList( qTags.name, "</li><li>" )#</li></ul>
which has come in handy for me on a couple of occasions.
Posted by Peter Boughton on Sep 7, 2006 at 4:27 AM