> > Well, this didn't work.  CF ignors the quotes and treats all
> > commas it finds as delimiters
> >
> > Any ideas how I can allow a comma in the list?
> 
> CF is "stupid" about commas in lists, so, here's an idea...
> 
> put ", in front of the list ," at the end and use "," as the delimiter

It's not that important, but I'd like to argue against this. CF isn't
stupid about lists. If you say that the comma is a delimiter, then it's
going to treat every delimiter as a comma. You can see the same
behaviour in Java using StringTokenizers. Sure, you can say, "Well, if I
put a comma between quotes, it should be ignored", but that's one of
those things that's easy for us to say as a human, but is pretty complex
for a computer. (Ie, you can build programs that run fast, but building
a program with common sense is a lot more difficult. ;)

In general, whenever I have a list where I can't trust the data... I
just don't use a list. In the example the user gave where the list came
from user input, why not consider a set of text boxes? 

[  ] [  ] [  ] [  ] etc.

You can then store this data into an array and just forget worrying
about delimiter.

Also, be aware that if you pass "," as a delimiter, this will NOT work.
CF will treat this is as 2 delimiters, the quote (") and the comma (,).
It will _not_ treat it as one delmiter -> ","

=======================================================================
Raymond Camden, Principal Spectra Compliance Engineer for Macromedia

Email    : [EMAIL PROTECTED]
Yahoo IM : morpheus

"My ally is the Force, and a powerful ally it is." - Yoda 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to